iris constrain on ORCA grid

33 views
Skip to first unread message

juju palm

unread,
Jul 28, 2021, 8:42:18 AM7/28/21
to SciTools (iris, cartopy, cf_units, etc.) - https://github.com/scitools

Hi everyone
I am trying to extract some NEMO-MEDUSA outputs along longitude transect or longitude average, but iris constrain does not like the ORCA grid :

running : transect = cube.extract(iris.Constraint(longitude=-30))

i get this error :
CoordinateMultiDimError: Cannot apply constraints to multidimensional coordinates

Is there a way to force the cube.extract like functions using constrain to work on the NEMO grid ?
i kind of get something running with numpy functions, but i've to work on cube.data instead of cube, losing lots of iris functionality... that's a shame really.

Many many thanks!

Julien.
Reply all
Reply to author
Forward
0 new messages