Deltares / xugrid

Xarray and unstructured grids
https://deltares.github.io/xugrid/
MIT License
53 stars 8 forks source link

Add selection by polygon #201

Open Huite opened 5 months ago

Huite commented 5 months ago

As raised in #200: selection by polygon seems like a common operation, and it should be easily doable.

Currently, it requires burning the polygon into the topology followed by a where dropna. This could be facilitated easily by using the burn logic and directly calling an isel instead, I think.