-
Notifications
You must be signed in to change notification settings - Fork 40
Implemented regridding of auxiliary coordinates #548
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
Conversation
may be out of context but here's something that may be of use - was just sifting through iris issues waiting for a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there no way to add bounds to aux coords in iris so that we can jump over the constraint that is there be no bounds there be no regridding? In a peasant way you can promote that coord to DimCoord and use guess_bounds()
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you put that logger message saying the regrid method for AuxCoords is fixed to BLAH, all good by me bro, let's get @zklaus take on the actual philosophy 😁
waddup, guys? 🍺 |
I think @zklaus had some comments on this, right? |
I am not sure regridding is generally applicable to aux coords. I'd like to see the actual use case that triggered that to get a better idea. @schlunma, could you mention the issue of the use case here (again?)? |
Sure thing. Some FGOALS model data has a derived coordinate For this, it is necessary that the file contains the The funny thing about that is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still a bit queasy about applying this approach to all aux coords. I would suggest to limit it either to known good aux coords, like surface_pressure
, or at least to those that are connected to the x and/or y dim of the cube.
points = iris.util.broadcast_to_shape(coord.core_points(), | ||
cube.shape, | ||
coord_dims) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that this has the potential to incur a hefty additional cost? A 1d aux coord, even a scalar coord might be blown into a long timeseries of 3d data, right? If I understand iris correctly, this is not necessary. Source and target only need to share x and y dim. What happens without the broadcast?
Okay, I justed tested again with the FGOALS model and I realized that adding I'm really sorry for wasting your time with this PR @valeriupredoi @zklaus! |
Don't worry. Might still be an interesting concept in the future. |
Tasks
yamllint
to check that your YAML files do not contain mistakesIf you need help with any of the tasks above, please do not hesitate to ask by commenting in the issue or pull request.
Closes #545.