-
Notifications
You must be signed in to change notification settings - Fork 19
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
Unexpected behaviour comparing two views of the same data: pp and netcdf #775
Comments
Hi Bryan, The CF logical contents of the Fields are the same (the Fields read from Pp do have long_names) - it's just the repr view. A bit of context here - when you read from PP files, the Fields have their Options:
All three have pros and cons - I suspect one size does not fit all, here :) |
Ok, that makes sense, but in CF Python we have got the same logical content in both cases, so I expected to see the same thing. How horrible do you think the outcome would be if you did step 3? I guess, I'm wondering about the pros and cons (maybe this is a cf version 4 change, if at all). |
Thanks for the clarification of the context, David. I for one (two) was not aware of that.
Indeed, I think the best solution would be to make it configurable so that if a user such as Bryan wants identical representations of the contents, they can get that, but they can also choose not to remove the id attribute from the PP, at appropriate points in each case. So for me the decision is how to best support that with the API, and what the default behaviour would be, assuming we're happy to do the work to enable it. |
Usecase: I read some pp data, and look at what I have. I then write the same data out to netcdf, and read it back in. I expect the list of cf-fields to be identical. But they are not.
compare with the same operation aftrer writing that list of fields out to a netcdf file
This is
cf.__version__ = 3.16.2
From my point of view the file format should not affect the logical view of the contents. I understand there may be some historical reasons for this behaviour, but maybe they should be reviewed.
The text was updated successfully, but these errors were encountered: