You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using iris.util.reverse along an axis, the cube that is returned is reversed properly. But the coordinate along which it has been reversed, has the bounds flipped and they become noncontiguous. This can cause issues when doing area-related operations.
How To Reproduce
Steps to reproduce the behaviour:
An example for the latitudes would be
cube = iris.util.reverse(cube, (1,))
cube.coord(var_name='lat').bounds
This is the current behaviour when we want to reverse a cube with a decreasing latitude coordinate to make it increasing instead.
🐛 Bug Report
When using
iris.util.reverse
along an axis, the cube that is returned is reversed properly. But the coordinate along which it has been reversed, has the bounds flipped and they become noncontiguous. This can cause issues when doing area-related operations.How To Reproduce
Steps to reproduce the behaviour:
An example for the latitudes would be
This is the current behaviour when we want to reverse a cube with a decreasing latitude coordinate to make it increasing instead.
Latitudes in a cube before reversing:
Latitudes after reversing:
Expected behaviour
The expected behaviour would be to have a coordinate that even though it has been reversed, the bounds are still contiguous:
Screenshots
Environment
Additional context
Click to expand this section...
Related to ESMValGroup/ESMValCore#1060
See here for further details.
The text was updated successfully, but these errors were encountered: