Skip to content

Commit

Permalink
Fixed sounding decorder bug
Browse files Browse the repository at this point in the history
Part of the SIGW merging code erroneously added pressure to the wind
direction array. This was subsequently written over by actual wind
direction data which may explain why no errors were found in testing.
The pressure level is not placed in the correct array.
  • Loading branch information
nawendt committed May 19, 2021
1 parent c899a3a commit 8c30da5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gempakio/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ def _merge_sounding(self, parts):
first_sig_p = abs(parts['PPBB']['PRES'][0])
if (first_man_p == self.prod_desc.missing_float
or np.isclose(first_man_p, first_sig_p)):
merged['DRCT'][0] = abs(parts['PPBB']['PRES'][0])
merged['PRES'][0] = abs(parts['PPBB']['PRES'][0])
merged['DRCT'][0] = parts['PPBB']['DRCT'][0]
merged['SPED'][0] = parts['PPBB']['SPED'][0]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import find_packages, setup

NAME = 'gempakio'
VERSION = '0.5'
VERSION = '0.6'
DESCR = 'Read GEMPAK data with pure Python.'
URL = 'https://github.com/nawendt/gempakio'
REQUIRES = ['pyproj', 'xarray']
Expand Down

0 comments on commit 8c30da5

Please sign in to comment.