Skip to content

Commit 514b843

Browse files
authored
Merge pull request #7 from NREL/gb/limit_reff
added particle size limits for farms calculation as per advice from y…
2 parents ec53993 + e857f73 commit 514b843

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

farms/farms.py

+10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424

2525
def water_phase(tau, De, solar_zenith_angle):
2626
"""Get cloudy Tducld and Ruucld for the water phase."""
27+
# enforce water phase particle size between 5 and 120 micron
28+
# as per advice from yu xie
29+
De = np.maximum(De, 5)
30+
De = np.minimum(De, 120)
31+
2732
# 12a from [1]
2833
Ptau = (2.8850 + 0.002 * (De - 60.0)) * solar_zenith_angle - 0.007347
2934

@@ -56,6 +61,11 @@ def water_phase(tau, De, solar_zenith_angle):
5661

5762
def ice_phase(tau, De, solar_zenith_angle):
5863
"""Get cloudy Tducld and Ruucld for the ice phase."""
64+
# enforce ice phase particle size between 5 and 140 micron
65+
# as per advice from yu xie
66+
De = np.maximum(De, 5)
67+
De = np.minimum(De, 140)
68+
5969
# 13a from [1]
6070
Ptau = np.where(De <= 26.0,
6171
2.8487 * solar_zenith_angle - 0.0029,

farms/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
FARMS version number
33
"""
44

5-
__version__ = "1.0.3"
5+
__version__ = "1.0.4"

0 commit comments

Comments
 (0)