-
Notifications
You must be signed in to change notification settings - Fork 283
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
Save crs_wkt on netCDF save #4719
base: main
Are you sure you want to change the base?
Conversation
This seems sensible, what does the cf conventions say about wkt? this will change everyones output netcdf files by default right? |
It will change their output results, but not what their file means, so I think that's fine? The only bit of the CF conventions wrt. |
From the link you put above:
As long as we are doing that seems reasonable. |
We're trusting our |
This definitely needs a what's new / adding to the release notes for which ever release it goes out in. I'm wondering if this should be the default behaviour or whether it should be behind a flag, given that it is changing the output iris produces? The thing that worries me is how little control users have over what goes into their netcdf file, and that it is redundant info in the sense that the wkt is already encoded in other params. if there was a problem that made the file incompatible with the next piece of software in their workflow, how could the user work around it? |
2ca01bf
to
d53d08b
Compare
I can future flag it? There aren't users clamouring for this to be the default behaviour. It would mean a warning on pretty much every netCDF save though. We could add to the arguments that can be supplied to the netCDF writer, but having made that addition to the API we'd have to support that bloat of the API (and leave it in there or future flag its removal) if we want to get rid of it at a later point. Maybe we should future flag it so that people can try it out then when it becomes on by default they can still turn it off if it turns out to cause issues, then once it becomes fixed (at least within Iris) people will have found any bugs and/or adapted? |
Does this PR also take care of what is discussed in CF/cf-conventions issue #223, i.e. to explicitly state the coordinate axis ordering in the content of the |
It doesn't, but you're right that looking at that issue it appears we'd need to include that at the same time. It shouldn't be too hard as we already have the information when we write the variable, so it looks like just an addition to what we include in the @pp-mo do you have opinions on this? |
In order to maintain a backlog of relevant PRs, we automatically label them as stale after 500 days of inactivity. If this PR is still important to you, then please comment on this PR and the stale label will be removed. Otherwise this PR will be automatically closed in 28 days time. |
Yes, I think that this is still relevant. |
Will Benfold seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Discussed yesterday in a
Dragon 🐉
One important note from the meeting is that we currently store no arbitrary attributes on the Step 1 - finish #4719We are comfortable ALWAYS saving In the interest of breaking the task down, we plan to leave the changes to Step 2 - enable Iris to encode the OGC axis order into the
|
Step 3 suggestion is going to be clunky; coordinate_system objects aren't shared across coordinates, so would either need a rehaul of how it works, or more effort on the user's side. |
🚀 Pull Request
Description
One small code change, many test changes
Consult Iris pull request check list