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
An iris cube that has ancillary variables and cell_measures, upon intersecting it with a region via cube.intersect may lose those ancillary variables and cell_measures depending on what the coordinates of the intersected region are.
(esmvaltool) valeriu@valeriu-PORTEGE-Z30-C:~$ conda list iris
# packages in environment at /home/valeriu/miniconda3/envs/esmvaltool:
#
# Name Version Build Channel
iris 3.6.1 pyha770c72_0 conda-forge
iris-esmf-regrid 0.7.0 pyhd8ed1ab_0 conda-forge
@valeriupredoi in your post, the second region (reproduced below) retains the ancillary variables, right? I think you forgot to change a word in the code comment.
Hey folks,
Here's one sneaky one for you:
Main point
An iris cube that has ancillary variables and cell_measures, upon intersecting it with a region via
cube.intersect
may lose those ancillary variables and cell_measures depending on what the coordinates of the intersected region are.Minimal fully reproducible code
cube_to_intersect_smol.nc
attached here (rename to .nc, size=1.2M, smol like I says)cube_to_intersect_smol.nc.txt
Have I looked at docs?
Yes https://scitools-iris.readthedocs.io/en/latest/generated/api/iris.cube.html#iris.cube.Cube.intersection no mention of any side effects, coordinates are circular
Iris version and installation type
AOBs
Related to #3483
Great many thanks in advance! Many thanks to @rebeccaherman1 for alerting me to this via ESMValGroup/ESMValCore#2162
Obligatory pint emoji
🍺
The text was updated successfully, but these errors were encountered: