Skip to content

Resolve pint units for netcdf save #7002

@pp-mo

Description

@pp-mo

Ensure that only "correct" unit strings are written to netcdf

Assuming that validate allows us to identify non-compliant things,

  1. convert with pint.Unit.to_base_units(), which should resolve unknown derived units
  2. fail/error remaining un-resolvable

See also SciTools/cfpint#10
That shows what a stopgap can look like. But this is not that

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions