-
Notifications
You must be signed in to change notification settings - Fork 279
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't collapse mesh #5377
Comments
Thamks for raising @bblay! For the future developer looking at this: do you have an easy way to reproduce the above stack trace? We have some sample 'mesh |
I've encountered the same issue, I'm trying to compare something UM and LFRic and its nice and easy to do a weighted average on a regular cube:
But not as easy (if not just impossible) to do in LFRic mesh world! |
Yup, we need to make this easier out the box for the community to use 馃憤 |
馃悰 Bug Report
It's not possible to collapse a mesh cube.
There's an error as it tries to collapse the mesh coord.
@pp-mo suggests, "I think this is probably a little bug introduced because MeshCoords are "like" AuxCoords but a bit different.", and also suggests a workaround is to remove the mesh coords, "You need to index the cube on the mesh dimension, with something other than ':' or 'slice(None)'." e.g with
cube[..., 0:]
orcube[tuple(slice(0, None) for _ in cube.shape)])
.Environment
The text was updated successfully, but these errors were encountered: