xproj.ProjAccessorMixin._proj_set_crs#
- abstractmethod ProjAccessorMixin._proj_set_crs(spatial_ref, crs)#
Method called when setting a new CRS via
xarray.Dataset.proj.assign_crs().- Parameters:
spatial_ref (
Hashable) – The name of the spatial reference (scalar) coordinate to which the CRS has been set.crs (
pyproj.crs.CRS) – The new CRS attached to the spatial reference coordinate.
- Returns:
xarray.Datasetorxarray.DataArray– Either a new or an existing Dataset or DataArray.