Do not take dewpoint depression as dewpoint
This commit is contained in:
parent
094a2908e2
commit
d2417b2000
1 changed files with 6 additions and 2 deletions
|
@ -78,11 +78,15 @@ class IGRAReader():
|
|||
sample.height_qa = match['zflag']
|
||||
sample.temp = parse_num(match['temp'], 0.1)
|
||||
sample.temp_qa = match['tflag']
|
||||
sample.humidity = parse_num(match['rh'], 0.1)
|
||||
sample.dewpoint = parse_num(match['dpdp'], 0.1)
|
||||
sample.dewpoint = None
|
||||
sample.wind_dir = parse_num(match['wdir'], 1.0)
|
||||
sample.wind_speed = parse_num(match['wspd'], 0.1)
|
||||
|
||||
dpdp = parse_num(match['dpdp'], 0.1)
|
||||
|
||||
if sample.temp is not None and dpdp is not None:
|
||||
sample.dewpoint = sample.temp - dpdp
|
||||
|
||||
return sample
|
||||
|
||||
def read(self) -> Sounding:
|
||||
|
|
Loading…
Add table
Reference in a new issue