Implement formula for LCL
This commit is contained in:
parent
aa0977c04b
commit
0293905b74
1 changed files with 3 additions and 2 deletions
|
@ -4,8 +4,6 @@ import shapely
|
|||
LAPSE_RATE_DRY = 9.8 / 1000 # degrees C per 1000m
|
||||
LAPSE_RATE_MOIST = 4.0 / 1000
|
||||
|
||||
MIXING_RATIO_CONST = 621.97
|
||||
|
||||
class SoundingSample():
|
||||
__slots__ = (
|
||||
'id', 'sounding_id', 'elapsed', 'pressure', 'pressure_qa',
|
||||
|
@ -47,6 +45,9 @@ class SoundingSample():
|
|||
|
||||
return 621.97 * (es / (self.pressure - es))
|
||||
|
||||
def lcl(self) -> float:
|
||||
return (self.temperature - self.dewpoint) / 8.0
|
||||
|
||||
def is_saturated(self) -> bool:
|
||||
return self.humidity >= 100.0
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue