salem.DatasetAccessor.transform_and_add
- DatasetAccessor.transform_and_add(other, grid=None, interp='nearest', ks=3, name=None)[source]
Reprojects an other Dataset and adds it’s content to the current one.
- Parameters:
- other: Dataset, DataArray or ndarray
the data to project onto self
- grid: salem.Grid
in case the input dataset does not carry georef info
- interpstr
‘nearest’ (default), ‘linear’, or ‘spline’
- ksint
Degree of the bivariate spline. Default is 3.
- name: str or dict-like
how to name to new variables in self. Per default the new variables are going to keep their name (it will raise an error in case of conflict). Set to a str to to rename the variable (if unique) or set to a dict for mapping the old names to the new names for datasets.