cf_xarray.accessor._get_custom_criteria#

cf_xarray.accessor._get_custom_criteria(obj, key, criteria=None)[source]#

Translate from axis, coord, or custom name to variable name.

Optionally use custom_criteria.

Parameters:
objDataArray, Dataset
keystr

key to check for.

criteriadict, optional

Criteria to use to map from variable to attributes describing the variable. An example is coordinate_criteria which maps coordinates to their attributes and attribute values. If user has defined custom_criteria, this will be used by default.

Returns:
List[str]

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