Ouranosinc / xscen

A climate change scenario-building analysis framework.
https://xscen.readthedocs.io/
Apache License 2.0
17 stars 2 forks source link

Subset "sel-by-shape" #206

Open aulemahal opened 1 year ago

aulemahal commented 1 year ago

Addressing a Problem?

Idea from the Ingénieurs thing : need for a subset function that cuts the smallest zone possible that contains a list of geometries.

There is no masking here, this is not subset_shape. The result should act as if we had used the sel method, but it would compute these sel itself, by unioning (yes) a collection of geometries. Ideally, the tile_buffer argument should be supported.

Potential Solution

clisops.core.subset.shape_bbox_indexer could be used.

Additional context

No response

Contribution