xarray-contrib / xarray-regrid

Regridding utility for xarray
https://xarray-regrid.readthedocs.org/
Apache License 2.0
68 stars 6 forks source link

max / min regridding method high to coarse resolution #35

Closed folmerkrikken closed 1 month ago

folmerkrikken commented 7 months ago

Hi, thanks for this great package. I really like how easy it is to use. It can definitely take over some of the use cases where I now still use XESMF / CDO. I was wondering if it would be possible to add a max and min regridding method just like remapmax and remapmin in CDO ( ds.regrid.max / ds.regrid.min ) when regridding high res data to low res data.

Thanks, Folmer

BSchilperoort commented 7 months ago

Hi Folmer, good to hear that you're enjoying using xarray-regrid. I think adding a min/max method should be relatively easy to implement. Other statistics such as the variance or standard deviation will be difficult to implement though.

slevang commented 1 month ago

This is available with regrid.stat now (#46).