From 8c30da502ab74b5d75748cc74eec5a86b63983e0 Mon Sep 17 00:00:00 2001 From: Nathan Wendt Date: Tue, 18 May 2021 21:40:26 -0500 Subject: [PATCH] Fixed sounding decorder bug 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. --- gempakio/decode.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gempakio/decode.py b/gempakio/decode.py index bdf60cb..31c90f5 100644 --- a/gempakio/decode.py +++ b/gempakio/decode.py @@ -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] diff --git a/setup.py b/setup.py index b9be94f..9256b59 100644 --- a/setup.py +++ b/setup.py @@ -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']