Introduction
Developer Guide
to_crs()
__iter__()
GeoBox
GridSpec
Index
Assign CRS for a non-georegistered array or dataset.
Returns a new object with CRS information populated.
xx = xr.open_rasterio("some-file.tif") print(xx.odc.crs) print(xx.astype("float32").crs)
xx (TypeVar(XrT, DataArray, Dataset)) – Dataset or DataArray
TypeVar
XrT
DataArray
Dataset
crs (Union[str, CRS, CRS, Dict[str, Any]]) – CRS to assign
Union
str
CRS
Dict
Any
crs_coord_name (str) – how to name crs coordinate (defaults to spatial_ref)
spatial_ref
TypeVar(XrT, DataArray, Dataset)