aboutsummaryrefslogtreecommitdiff
path: root/aggregator
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-15 17:33:01 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-15 17:33:01 +0200
commit50a5fc958b1705580610ce0b3f50dc3e6156fbc0 (patch)
tree20605c06b91eba9563f7302171f816b62c867d95 /aggregator
parentdf996bda501bb4cdac95ec6cb3443b772e24a0c9 (diff)
downloadmeteo_toolbox-50a5fc958b1705580610ce0b3f50dc3e6156fbc0.tar.gz
add modifier
Diffstat (limited to 'aggregator')
-rwxr-xr-xaggregator/dwd_icon.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/aggregator/dwd_icon.py b/aggregator/dwd_icon.py
index 0827469..6df905c 100755
--- a/aggregator/dwd_icon.py
+++ b/aggregator/dwd_icon.py
@@ -113,7 +113,9 @@ def load_data(name, output, description = None, clean = False, force_filename =
if clean:
clean_output_dir(output, filename)
- ds = xr.load_dataset(target, engine='cfgrib')
+ # we drop heightAboveGround to allow 2m and 10m values to be merged down to one dataset
+ ds = xr.load_dataset(target, engine='cfgrib', drop_variables='heightAboveGround')
+
if description is not None:
ds.attrs['_description'] = description
return ds