Add constants for lapse rates

This commit is contained in:
XANTRONIX 2025-02-24 19:29:35 -05:00
parent 0293905b74
commit 1bf5f3eabe

View file

@ -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