Mathias Hauser
Mathias Hauser
Not sure if necessary - maybe do #356 first to see the differences.
Natural earth data is more active (which is good) but this raises the question if there are differences between the versions that are relevant for regionmask? I should write a...
This would allow to indicate which region corresponds to which number via `attrs` and would work nicely with `cf_xarray`. ```python import cf_xarray import xarray as xr da = xr.DataArray( [[1,...
https://docs.python.org/3/library/importlib.metadata.html Easier after #329 (no new dependency).
Mostly for shapely to see what v2.0 will bring. Maybe just manually for the moment.
for regular grids: https://gist.github.com/perrygeo/721040f8545272832a42#file-pctcover-png
No idea if this would work. However, we currently emulate a dataframe-like datastructure (`Regions`). Maybe we could draw from `geopandas`?
- [clisops](https://clisops.readthedocs.io/en/latest/) - [geocube](https://github.com/corteva/geocube)? - [geopandas](https://github.com/geopandas/geopandas) - [python-rasterstats](https://github.com/perrygeo/python-rasterstats): DONE - [rioxarray](https://github.com/corteva/rioxarray) - [xagg](https://github.com/ks905383/xagg) - [xesmf](https://pangeo-xesmf.readthedocs.io/en/latest/notebooks/Spatial_Averaging.html) ## honorary mentions - [exactextract](https://github.com/isciences/exactextract): exact (taking into account partial cell overlaps) and fast but...
There are several ways to do this. My suggestions is to go via the area: ```python total_area = sum(p.area() for p in polygons) flattened_area = shapely.ops.unary_union(polygons).area overlap = (total_area -...
Deprecate `Regions.coords`? I don't think it's needed anywhere anymore?