From 06d5658c7338fb18d66e74243201b97023d8f23b Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sat, 8 Mar 2025 21:33:32 -0500 Subject: [PATCH] Allow specifying pressure increments following saturated mixing ratio line --- lib/xmet/thermo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/xmet/thermo.py b/lib/xmet/thermo.py index 5410411..0dac249 100644 --- a/lib/xmet/thermo.py +++ b/lib/xmet/thermo.py @@ -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