xarray-contrib / xdggs

Xarray extension for DGGS
https://xdggs.readthedocs.io
Apache License 2.0
77 stars 13 forks source link

Alignment #7

Open benbovy opened 12 months ago

benbovy commented 12 months ago

Because a DGGSIndex wraps a PandasIndex, we can (should?) support alignment of Dataset / DataArray objects just like with Xarray default (pandas) indexes, here based on cell ids.

At the very least, we should raise an error during alignment if the grid type and parameters of the objects to align don't match exactly.

Later, I guess it will be possible to support fancier, grid-aware alignment like, e.g., align two objects on the same grid but at two different resolutions. That said, I'm not sure that it is a good idea to do that in an automated way.