Skip to content
Snippets Groups Projects
Commit 1faf395d authored by Felix Kleinert's avatar Felix Kleinert
Browse files

include 'stagger' fix as cdo removed empty attrs

parent 0a2bf23b
Branches
Tags
1 merge request!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #65183 passed
......@@ -255,6 +255,12 @@ class BaseWrfChemDataLoader:
u_target_field = self._data[mapping_of_stag2unstag[u_stag_name]]
v_target_field = self._data[mapping_of_stag2unstag[v_stag_name]]
# This if statements are needed as cdo might have removed empty attrs from variables
if "stagger" not in u_staged_field.attrs:
u_staged_field.attrs['stagger'] = ""
if "stagger" not in v_staged_field.attrs:
v_staged_field.attrs['stagger'] = ""
u_stagger = u_staged_field.attrs['stagger']
v_stagger = v_staged_field.attrs['stagger']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment