cf_xarray.GridMapping¶
- class cf_xarray.GridMapping(*, name, crs, array, coordinates)[source]¶
Represents a CF grid mapping with its properties and associated coordinate variables.
- Attributes:
- namestr
The CF grid mapping name (e.g.,
'latitude_longitude','transverse_mercator')- crspyproj.CRS
The coordinate reference system object
- arrayxarray.DataArray
The grid mapping variable as a DataArray containing the CRS parameters
- coordinatestuple[Hashable, …]
Names of coordinate variables associated with this grid mapping. For grid mappings that are explicitly listed with coordinates in the grid_mapping attribute (e.g.,
'spatial_ref: crs_4326: latitude longitude'), this contains those coordinates. For grid mappings (e.g.spatial_ref) that don’t explicitly specify coordinates, this falls back to the dimension names of the data variable that references this grid mapping.
- __init__(*, name, crs, array, coordinates)¶
Methods
__init__(*, name, crs, array, coordinates)Attributes