cf_xarray.accessor._get_measure#

cf_xarray.accessor._get_measure(obj, key)[source]#

Translate from cell measures to appropriate variable name.

This function interprets the cell_measures attribute on DataArrays.

Parameters:
objDataArray, Dataset

DataArray belonging to the coordinate to be checked

keystr

key to check for.

Returns:
List[str]

Variable name(s) in parent xarray object that matches axis or coordinate key