From 0a37a88b4cf16cccb1438cbb1fcb90fd9b22f9b8 Mon Sep 17 00:00:00 2001 From: "d.lassahn" Date: Tue, 8 Sep 2020 09:16:31 +0200 Subject: [PATCH] Add enums and configs for radar data --- wetterdienst/dwd/metadata/parameter.py | 24 ++++++- wetterdienst/dwd/metadata/radar_data_types.py | 8 +++ wetterdienst/dwd/metadata/radar_sites.py | 71 +++++++++++++++++++ 3 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 wetterdienst/dwd/metadata/radar_data_types.py create mode 100644 wetterdienst/dwd/metadata/radar_sites.py diff --git a/wetterdienst/dwd/metadata/parameter.py b/wetterdienst/dwd/metadata/parameter.py index f2d254d58..df415fd2c 100644 --- a/wetterdienst/dwd/metadata/parameter.py +++ b/wetterdienst/dwd/metadata/parameter.py @@ -38,8 +38,30 @@ class Parameter(Enum): WATER_EQUIVALENT = "water_equiv" WEATHER_PHENOMENA = "weather_phenomena" - # Others + # Radar data + + # composites RADOLAN = "radolan" + WX_REFLECTIVITY = "wx" + RX_REFLECTIVITY = "rx" + WN_REFLECTIVITY = "wn" + PG_REFLECTIVITY = "pg" + PP_REFLECTIVITY = "pp" + + # sites + DX_REFLECTIVITY = "dx" + LMAX_VOLUME_SCAN = "lmax" + PE_ECHO_TOP = "pe" + PF_REFLECTIVITY = "pf" + PL_VOLUME_SCAN = "pl" + PR_VELOCITY = "pr" + PX_REFLECTIVITY = "px" + PX250_REFLECTIVITY = "px250" + PZ_CAPPI = "pz" + SWEEP_VOL_PRECIPITATION_V = "sweep_pcp_v" + SWEEP_VOL_PRECIPITATION_Z = "sweep_pcp_z" + SWEEP_VOL_VELOCITY_V = "sweep_vol_v" + SWEEP_VOL_VELOCITY_Z = "sweep_vol_z" TIME_RESOLUTION_PARAMETER_MAPPING: Dict[ diff --git a/wetterdienst/dwd/metadata/radar_data_types.py b/wetterdienst/dwd/metadata/radar_data_types.py new file mode 100644 index 000000000..ca654a3b9 --- /dev/null +++ b/wetterdienst/dwd/metadata/radar_data_types.py @@ -0,0 +1,8 @@ +from enum import Enum + + +class RadarDataTypes(Enum): + """ Enumeration for different Radar Data Types""" + BUFR = "bufr" + HDF5 = "hdf5" + BINARY = "binary" diff --git a/wetterdienst/dwd/metadata/radar_sites.py b/wetterdienst/dwd/metadata/radar_sites.py new file mode 100644 index 000000000..fd69f54be --- /dev/null +++ b/wetterdienst/dwd/metadata/radar_sites.py @@ -0,0 +1,71 @@ +""" metadata about radar sites """ + +RADAR_LOCATIONS = {'asb': {'site_name': 'ASR Borkum', + 'location_id': 10103, + 'latitude': 53.564011, + 'longitude': 6.748292}, + 'boo': {'site_name': 'Boostedt', + 'location_id': 10132, + 'latitude': 54.004381, + 'longitude': 10.046899}, + 'drs': {'site_name': 'Dresden', + 'location_id': 10488, + 'latitude': 51.124639, + 'longitude': 13.768639}, + 'eis': {'site_name': 'Eisberg', + 'location_id': 10780, + 'latitude': 49.540667, + 'longitude': 12.402788}, + 'ess': {'site_name': 'Essen', + 'location_id': 10410, + 'latitude': 51.405649, + 'longitude': 6.967111}, + 'fbg': {'site_name': 'Feldberg', + 'location_id': 10908, + 'latitude': 47.873611, + 'longitude': 8.003611}, + 'fld': {'site_name': 'Flechtdorf', + 'location_id': 10440, + 'latitude': 51.311197, + 'longitude': 8.801998}, + 'isn': {'site_name': 'Isen', + 'location_id': 10873, + 'latitude': 48.174705, + 'longitude': 12.101779}, + 'hnr': {'site_name': 'Hannover', + 'location_id': 10339, + 'latitude': 52.460083, + 'longitude': 9.694533}, + 'mem': {'site_name': 'Memmingen', + 'location_id': 10950, + 'latitude': 48.042145, + 'longitude': 10.219222}, + 'neu': {'site_name': 'Neuhausen', + 'location_id': 10557, + 'latitude': 50.500114, + 'longitude': 11.135034}, + 'nhb': {'site_name': 'Neuheilenbach', + 'location_id': 10605, + 'latitude': 50.109656, + 'longitude': 6.548328}, + 'oft': {'site_name': 'Offenthal', + 'location_id': 10629, + 'latitude': 49.984745, + 'longitude': 8.712933}, + 'pro': {'site_name': 'Prötzel', + 'location_id': 10392, + 'latitude': 52.648667, + 'longitude': 13.858212}, + 'ros': {'site_name': 'Rostock', + 'location_id': 10169, + 'latitude': 54.175660, + 'longitude': 12.058076}, + 'tur': {'site_name': 'Türkheim', + 'location_id': 10832, + 'latitude': 48.585379, + 'longitude': 9.782675}, + 'umd': {'site_name': 'Ummendorf', + 'location_id': 10356, + 'latitude': 52.160096, + 'longitude': 11.176091} + }