Allow specifying pressure increments following saturated mixing ratio line

This commit is contained in:
XANTRONIX 2025-03-08 21:33:32 -05:00
parent 36d4d17da2
commit 06d5658c73

View file

@ -173,7 +173,7 @@ def follow_moist_adiabat(temp: float, pressure: float) -> Series:
return 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 Follow a line of constant saturated mixing ratio calculated from a given
temp and pressure level, returning a Series object depicting the data 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: while p2 >= PRESSURE_MIN:
series[p2] = mixing_ratio_temp(ratio, p2) series[p2] = mixing_ratio_temp(ratio, p2)
p2 -= 10 p2 -= step
return series return series