Add constants for lapse rates
This commit is contained in:
parent
0293905b74
commit
1bf5f3eabe
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ TEMP_CENTER = 0 # degrees C
|
||||||
TEMP_STEP = 5
|
TEMP_STEP = 5
|
||||||
TEMP_STEP_COUNT = math.ceil(TEMP_RANGE / TEMP_STEP)
|
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):
|
def clamp(value, lowest, highest):
|
||||||
if value < lowest:
|
if value < lowest:
|
||||||
return lowest
|
return lowest
|
||||||
|
|
Loading…
Add table
Reference in a new issue