API Reference#
Dataset proj extension#
XProj extends xarray.Dataset with the properties and methods below.
To enable it, be sure to import xproj after xarray:
>>> import xarray as xr
>>> import xproj
CRS properties
Return an immutable dictionary of coordinate names as keys and |
|
Return an immutable dictionary of coordinate names as keys and xarray Index objects that are CRS-aware. |
|
Return the coordinate reference system as a |
CRS methods
|
Assign one or more spatial reference coordinate variables, each with a given coordinate reference system (CRS). |
|
Map spatial reference coordinate(s) to other indexed coordinates. |
|
Write CRS information as attributes to one or all spatial reference coordinates. |
|
Convenient method to clear all attributes of one or all spatial reference coordinates. |
DataArray proj extension#
XProj extends xarray.DataArray with the properties and methods below.
To enable it, be sure to import xproj after xarray:
>>> import xarray as xr
>>> import xproj
CRS properties
Return an immutable dictionary of coordinate names as keys and |
|
Return an immutable dictionary of coordinate names as keys and xarray Index objects that are CRS-aware. |
|
Return the coordinate reference system as a |
CRS methods
|
Assign one or more spatial reference coordinate variables, each with a given coordinate reference system (CRS). |
|
Map spatial reference coordinate(s) to other indexed coordinates. |
|
Write CRS information as attributes to one or all spatial reference coordinates. |
|
Convenient method to clear all attributes of one or all spatial reference coordinates. |
CRS utility functions#
|
Format CRS as a string. |
|
Try getting a common, unique CRS from an input sequence of (possibly undefined) CRS objects. |
3rd-party Xarray extensions#
XProj provides some utilities (Mixin classes, decorators) for easier integration with 3rd-party Xarray geospatial extensions.
Mixin class that marks XProj support for an Xarray accessor. |
|
Mixin class that marks XProj support for an Xarray index. |
|
Decorator for registering a geospatial, CRS-dependent Xarray (Dataset and/or DataArray) accessor. |