Compare commits
No commits in common. "0293905b745f0f695f6af2767d31036e456483c1" and "e87d67283051c605899db9d7867e324ed452d4aa" have entirely different histories.
0293905b74
...
e87d672830
2 changed files with 2 additions and 4 deletions
|
@ -78,7 +78,6 @@ class IGRAReader():
|
||||||
sample.height_qa = match['zflag']
|
sample.height_qa = match['zflag']
|
||||||
sample.temp = parse_num(match['temp'], 0.1)
|
sample.temp = parse_num(match['temp'], 0.1)
|
||||||
sample.temp_qa = match['tflag']
|
sample.temp_qa = match['tflag']
|
||||||
sample.humidity = parse_num(match['rh'], 0.1)
|
|
||||||
sample.dewpoint = None
|
sample.dewpoint = None
|
||||||
sample.wind_dir = parse_num(match['wdir'], 1.0)
|
sample.wind_dir = parse_num(match['wdir'], 1.0)
|
||||||
sample.wind_speed = parse_num(match['wspd'], 0.1)
|
sample.wind_speed = parse_num(match['wspd'], 0.1)
|
||||||
|
|
|
@ -4,6 +4,8 @@ import shapely
|
||||||
LAPSE_RATE_DRY = 9.8 / 1000 # degrees C per 1000m
|
LAPSE_RATE_DRY = 9.8 / 1000 # degrees C per 1000m
|
||||||
LAPSE_RATE_MOIST = 4.0 / 1000
|
LAPSE_RATE_MOIST = 4.0 / 1000
|
||||||
|
|
||||||
|
MIXING_RATIO_CONST = 621.97
|
||||||
|
|
||||||
class SoundingSample():
|
class SoundingSample():
|
||||||
__slots__ = (
|
__slots__ = (
|
||||||
'id', 'sounding_id', 'elapsed', 'pressure', 'pressure_qa',
|
'id', 'sounding_id', 'elapsed', 'pressure', 'pressure_qa',
|
||||||
|
@ -45,9 +47,6 @@ class SoundingSample():
|
||||||
|
|
||||||
return 621.97 * (es / (self.pressure - es))
|
return 621.97 * (es / (self.pressure - es))
|
||||||
|
|
||||||
def lcl(self) -> float:
|
|
||||||
return (self.temperature - self.dewpoint) / 8.0
|
|
||||||
|
|
||||||
def is_saturated(self) -> bool:
|
def is_saturated(self) -> bool:
|
||||||
return self.humidity >= 100.0
|
return self.humidity >= 100.0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue