Ensure that only "correct" unit strings are written to netcdf
Assuming that validate allows us to identify non-compliant things,
- convert with
pint.Unit.to_base_units(), which should resolve unknown derived units
- fail/error remaining un-resolvable
See also SciTools/cfpint#10
That shows what a stopgap can look like. But this is not that
Ensure that only "correct" unit strings are written to netcdf
Assuming that validate allows us to identify non-compliant things,
pint.Unit.to_base_units(), which should resolve unknown derived unitsSee also SciTools/cfpint#10
That shows what a stopgap can look like. But this is not that