Allow specifying pressure increments following saturated mixing ratio line
This commit is contained in:
parent
36d4d17da2
commit
06d5658c73
1 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ def follow_moist_adiabat(temp: float, pressure: float) -> Series:
|
|||
|
||||
return series
|
||||
|
||||
def follow_saturated_mixing_ratio(temp: float, pressure: float) -> Series:
|
||||
def follow_saturated_mixing_ratio(temp: float, pressure: float, step: float=10.00) -> Series:
|
||||
"""
|
||||
Follow a line of constant saturated mixing ratio calculated from a given
|
||||
temp and pressure level, returning a Series object depicting the data
|
||||
|
@ -188,6 +188,6 @@ def follow_saturated_mixing_ratio(temp: float, pressure: float) -> Series:
|
|||
while p2 >= PRESSURE_MIN:
|
||||
series[p2] = mixing_ratio_temp(ratio, p2)
|
||||
|
||||
p2 -= 10
|
||||
p2 -= step
|
||||
|
||||
return series
|
||||
|
|
Loading…
Add table
Reference in a new issue