xarray-contrib / xarray-regrid

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

Conservative: detect/handle non-regularly spaced intervals #6

Closed BSchilperoort closed 2 months ago

BSchilperoort commented 1 year ago

The current assumption in the conservative regridding method is that the intervals are spaced regularly. If they are spaced irregularly, the method will produce inaccurate results.

We should

  1. check if the intervals are actually regularly spaced
  2. if so: raise an error
  3. at a later date: support irregularly spaced data