EXCITED-CO2 / xarray-regrid

Regridding utility for xarray
Apache License 2.0
55 stars 5 forks source link

Conservative and most-common methods require increasing latitude/longitude in target grid #28

Closed kjdoore closed 5 months ago

kjdoore commented 5 months ago

When regridding using the conservative or most_common methods, the plane coordinates (i.e., latitude and longitude) must be in increasing order in the target grid. This is not the case for any interpolation method (e.g., linear) as xarray's interpolation method does not care about the coordinate order.

Suggest adding a sorting of the target grid (which is already done for the data).