We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c7e30d commit 130de86Copy full SHA for 130de86
src/access_mopper/cmip6_cmoriser.py
@@ -296,6 +296,12 @@ def select_and_process_variables(self):
296
elif bnds_var in self.ds.coords:
297
self.ds = self.ds.rename({bnds_var: out_bnds_name})
298
299
+ # Update "bounds" attribute in all variables and coordinates
300
+ for var in list(self.ds.variables) + list(self.ds.coords):
301
+ bounds_attr = self.ds[var].attrs.get("bounds")
302
+ if bounds_attr and bounds_attr in bounds_rename_map:
303
+ self.ds[var].attrs["bounds"] = bounds_rename_map[bounds_attr]
304
+
305
# Transpose the data variable according to the CMOR dimensions
306
cmor_dims = self.vocab.variable["dimensions"].split()
307
transpose_order = [
0 commit comments