diff --git a/lib/xmet/bufr.py b/lib/xmet/bufr.py index 25099fb..2e78b39 100644 --- a/lib/xmet/bufr.py +++ b/lib/xmet/bufr.py @@ -11,6 +11,8 @@ from xmet.units import celsius class BUFRSounding(Sounding): EDEX_HOST = 'edex-cloud.unidata.ucar.edu' + BUFR_SOURCE = 'UCAR' + BUFR_TYPE = 'bufrua' BUFR_PARAMS_MAN = set(['prMan', 'htMan', 'wdMan', 'wsMan']) BUFR_PARAMS_SIGT = set(['prSigT', 'htSigT', 'tpSigT', 'tdSigT']) @@ -108,8 +110,8 @@ class BUFRSounding(Sounding): timestamp = datetime.datetime.fromtimestamp(epoch, datetime.UTC) sounding.station = response[0].getLocationName() - sounding.data_source_pressure = 'UCAR' - sounding.data_source_other = 'UCAR' + sounding.data_source_pressure = BUFRSounding.BUFR_SOURCE + sounding.data_source_other = BUFRSounding.BUFR_SOURCE sounding.location = shapely.Point(geom.x, geom.y) sounding.timestamp_observed = timestamp