From 56c1dc608e23cc19db8d7f83d05fb7e522f77a18 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial <xan@xantronix.com> Date: Tue, 4 Mar 2025 21:49:34 -0500 Subject: [PATCH] Fix lapse() calculation --- lib/xmet/thermo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xmet/thermo.py b/lib/xmet/thermo.py index 4228bfe..23acabb 100644 --- a/lib/xmet/thermo.py +++ b/lib/xmet/thermo.py @@ -55,4 +55,4 @@ def lapse(temp: float, rate: float, delta: float) -> float: Return the temperature of a parcel cooled at either the dry or moist lapse rate for a given increase in height (in meters). """ - return temp - (rate * (delta / 1000)) + return temp - (rate * delta)