Allow for interpolation in `rectify_dataset()`
Closed this issue · 0 comments
forman commented
Is your feature request related to a problem? Please describe.
Do to a recent use case new requirements emerged for spatial resampling :
- Enhance function
xcube.core.resampling.rectify_dataset()
by a linear interpolation between adjacent source pixels. - Allow passing keyword arguments for
xcube.core.resampling.rectify_dataset()
toxcube.core.resampling.resample_in_space()
.
Describe the solution you'd like
- Introduce optional keyword argument
interpolation
with values"nearest"
and"linear"
and implement the linear interpolation in_compute_var_image_xarray_dask()
and_compute_var_image_xarray_numpy()
- Introduce optional keyword argument
rectify_kwargs
inxcube.core.resampling.resample_in_space()
- Deprecate keyword argument
xy_var_names
unused for a long time from functionxcube.core.resampling.rectify_dataset()
.