Skip to content

Commit

Permalink
Add enums and configs for radar data
Browse files Browse the repository at this point in the history
  • Loading branch information
d.lassahn authored and amotl committed Sep 26, 2020
1 parent 0688db2 commit 0a37a88
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 1 deletion.
24 changes: 23 additions & 1 deletion wetterdienst/dwd/metadata/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down
8 changes: 8 additions & 0 deletions wetterdienst/dwd/metadata/radar_data_types.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from enum import Enum


class RadarDataTypes(Enum):
""" Enumeration for different Radar Data Types"""
BUFR = "bufr"
HDF5 = "hdf5"
BINARY = "binary"
71 changes: 71 additions & 0 deletions wetterdienst/dwd/metadata/radar_sites.py
Original file line number Diff line number Diff line change
@@ -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}
}

0 comments on commit 0a37a88

Please sign in to comment.