API#
Top-level API#
|
Convert bounds variable to vertices. |
|
Convert vertices to CF-compliant bounds. |
|
Convert a DataArray with shapely geometry objects into a CF-compliant dataset. |
|
Convert geometries stored in a CF-compliant way to shapely objects stored in a single variable. |
|
Set options for cf-xarray in a controlled context. |
|
Encode a MultiIndexed dimension using the "compression by gathering" CF convention. |
|
Decode a compressed variable to a pandas MultiIndex. |
DataArray#
Attributes#
Mapping valid Axis standard names for |
|
Mapping valid cell measure standard names for |
|
Mapping cf_role names to variable names. |
|
Mapping valid Coordinate standard names for |
|
Mapping the parametric coordinate's name to a dictionary that maps "standard term names" to actual variable names. |
|
CF grid mapping name associated with this variable. |
|
Returns True if the DataArray satisfies CF conventions for flag variables. |
|
Mapping standard names to variable names. |
|
Extended version of regular |
Methods#
Index into a DataArray making use of CF attributes. |
|
Return repr(self). |
|
Add canonical CF attributes to variables with standard names. |
|
|
Differentiate an xarray object. |
|
Automagically guesses X, Y, Z, T, latitude, longitude, and adds appropriate attributes. |
Utility function that returns valid keys for .cf[]. |
|
|
Rename variables in object to match names of like-variables in |
Flag Variables#
cf_xarray supports rich comparisons for CF flag variables. Flag masks are not yet supported.
|
Compare flag values against |
|
Compare flag values against |
|
Compare flag values against |
|
Compare flag values against |
|
Compare flag values against |
|
Compare flag values against |
|
Test each value in the array for whether it is in test_elements. |
Dataset#
Attributes#
Mapping valid Axis standard names for |
|
Mapping keys to the variable names of their bounds. |
|
Mapping valid cell measure standard names for |
|
Mapping cf_role names to variable names. |
|
Mapping valid Coordinate standard names for |
|
Mapping the parametric coordinate's name to a dictionary that maps "standard term names" to actual variable names. |
|
Mapping the CF grid mapping name to the grid mapping variable name. |
|
Mapping standard names to variable names. |
Methods#
Index into a Dataset making use of CF attributes. |
|
Return repr(self). |
|
|
Create a new object with bounds variables. |
Add canonical CF attributes to variables with standard names. |
|
|
Convert bounds variable to vertices. |
|
Decode parameterized vertical coordinates in place. |
|
Differentiate an xarray object. |
Get bounds variable corresponding to key. |
|
Get bounds dim name for variable corresponding to key. |
|
|
Automagically guesses X, Y, Z, T, latitude, longitude, and adds appropriate attributes. |
Utility function that returns valid keys for .cf[]. |
|
|
Rename variables in object to match names of like-variables in |