Declare LAPSE_RATE_MAGIC_FACTOR
This commit is contained in:
parent
d9761de7b4
commit
b5b5d4efba
1 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,8 @@ from typing import Callable
|
||||||
from xmet.series import Series
|
from xmet.series import Series
|
||||||
from xmet.units import rad, deg, kelvin, celsius
|
from xmet.units import rad, deg, kelvin, celsius
|
||||||
|
|
||||||
LAPSE_RATE_DRY = 9.8 / 1000 # degrees C per km
|
LAPSE_RATE_DRY = 9.8 / 1000 # degrees C per km
|
||||||
|
LAPSE_RATE_MAGIC_FACTOR = 1.09 # adjustment for accuracy
|
||||||
|
|
||||||
PRESSURE_MAX = 1050 # millibar
|
PRESSURE_MAX = 1050 # millibar
|
||||||
PRESSURE_MSL = 1013.25
|
PRESSURE_MSL = 1013.25
|
||||||
|
@ -130,7 +131,8 @@ def loft_parcel(start_temp: float,
|
||||||
except OverflowError:
|
except OverflowError:
|
||||||
break
|
break
|
||||||
|
|
||||||
temp = lapse(temp, height - last_height, 1.09*rate)
|
temp = lapse(temp, height - last_height,
|
||||||
|
LAPSE_RATE_MAGIC_FACTOR*rate)
|
||||||
|
|
||||||
yield temp, pressure
|
yield temp, pressure
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue