salem.DatasetAccessor.transform

DatasetAccessor.transform(other, grid=None, interp='nearest', ks=3)

Reprojects an other Dataset or DataArray onto this grid.

If the data provided is 3D or 4D, Salem is going to try to understand as much as possible what to do with it.

Parameters:

other: Dataset, DataArray or ndarray

the data to project onto self

grid: salem.Grid

in case the data provided does not carry enough georef info

interp : str

‘nearest’ (default), ‘linear’, or ‘spline’

ks : int

Degree of the bivariate spline. Default is 3.

Returns:

a dataset or a dataarray