From 1bf5f3eabe0a1c02192e65dbced7f3cdd1646716 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial <xan@xantronix.com> Date: Mon, 24 Feb 2025 19:29:35 -0500 Subject: [PATCH] Add constants for lapse rates --- lib/xmet/skew_t.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/xmet/skew_t.py b/lib/xmet/skew_t.py index 0bb85ea..5fd9bce 100644 --- a/lib/xmet/skew_t.py +++ b/lib/xmet/skew_t.py @@ -20,6 +20,9 @@ TEMP_CENTER = 0 # degrees C TEMP_STEP = 5 TEMP_STEP_COUNT = math.ceil(TEMP_RANGE / TEMP_STEP) +LAPSE_RATE_DRY = 9.8 / 1000 # degrees C per 1000m +LAPSE_RATE_MOIST = 4.0 / 1000 + def clamp(value, lowest, highest): if value < lowest: return lowest