We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933a044 commit 7f2cc7cCopy full SHA for 7f2cc7c
1 file changed
src/cchdo/params/core.py
@@ -274,7 +274,8 @@ def get_nc_attrs(self, error=False):
274
standard_name = f"{standard_name} standard_error"
275
276
attrs["standard_name"] = standard_name
277
- attrs["units"] = cf_name.canonical_units
+ if cf_name.canonical_units is not None:
278
+ attrs["units"] = cf_name.canonical_units
279
280
if self.cf_unit is not None:
281
attrs["units"] = self.cf_unit
0 commit comments