-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PI] Aligning save behaviour of cube with units "unknown" and "no-unit" #3394
Comments
Ping @lbdreyer, what do you think? |
For reference, it's probably just this line which needs changing in order to make this change: iris/lib/iris/fileformats/netcdf.py Line 1763 in 26a32a3
|
Does the cfchecker complain about It seems to me that |
Closed by #3711. |
Consider the following treatment of the cube
units
for the valueunknown
andno-unit
.First, create come appropriate cubes, and save them (using the latest upstream/master pre 2.3.0):
Now, let's look at the resultant NetCDF files:
We created the
no_unit
unit (the aliases incf-units
forno_unit
are-
,no unit
,no-unit
, andnounit
) for convenience, and doesn't actually map to an valid UDUNITS unit. This is also true for theunknown
unit.The difference here is that
iris
doesn't explicitly save to NetCDF any units ofunknown
, and I argue this should also be the case for theno_unit
unit e.g.,Both the
unknown
andno_unit
units should have the same behaviour and should not be saved to NetCDF.Plus, NetCDF with
units
containingno_unit
may break upstream tools, as it's clearly not CF compliant.The text was updated successfully, but these errors were encountered: