Open bouweandela opened 3 years ago
Thanks @bouweandela! We'd love a PR from you if this is something you'd like to see 🙂
Thanks! I'll try to find some time to do this soon.
@bouweandela is this still important to you? We're unlikely to dedicate time to it at the UK Met Office:
Yes, still interesting, I'll try to have a look at this soon. I would have expected this is an interesting feature for the met office too since you've recently added support for meshes? Or is there some other way to extract a region from data that is on non rectangular grid?
I would have expected this is an interesting feature for the met office too since you've recently added support for meshes? Or is there some other way to extract a region from data that is on non rectangular grid?
Ah, this is indeed an important question! But the arrival of truly unstructured meshes has also complicated the question...
To avoid making assumptions wherever possible, we've been exploring using GeoVista/PyVista for regional extraction (example), since it should be able to support any required case. But it's early days yet.
We've not forgotten about this, this is a candidate for a future sprint on https://github.com/SciTools/iris/labels/Feature%3A%20GeoVista integration.
In order to maintain a backlog of relevant issues, we automatically label them as stale after 500 days of inactivity.
If this issue is still important to you, then please comment on this issue and the stale label will be removed.
Otherwise this issue will be automatically closed in 28 days time.
✨ Feature Request
Motivation
When working with ocean model data, it would be really convenient if
iris.cube.Cube.intersection
supported 2D latitude and longitude coordinates. Currentlythrows a
These coordinates are 2D because they are close enough to a rectangular grid to make this a meaningful data storage format. Therefore it makes sense to be able to select a rectangular cube slice for this type of data. Any points that are outside the region but inside the rectangular slice could e.g. be masked.
I recently implemented something like this in https://github.com/ESMValGroup/ESMValCore/pull/245, but it would be much nicer if this could be supported in iris.