xarray.Dataset.proj.clear_crs_info

xarray.Dataset.proj.clear_crs_info#

Dataset.proj.clear_crs_info(spatial_ref=None)#

Convenient method to clear all attributes of one or all spatial reference coordinates.

Parameters:

spatial_ref (Hashable, optional) – The name of a spatial reference coordinate. If not provided (default), CRS information will be cleared for all spatial reference coordinates found in the Dataset or DataArray. Each spatial reference coordinate must already have a CRSIndex associated.

Returns:

Dataset or DataArray – A new Dataset or DatArray object with attributes cleared for one or all spatial reference coordinates.