xoa.accessors.XoaDataArrayAccessor.get_dim¶
- XoaDataArrayAccessor.get_dim(dim_type, loc='any')¶
Get a dimension name knowing its type
This makes use of the
CFSpecs()instance was set at initialisation or inferred withxoa.cf.infer_cf_specs(). If no specialized name is declared in the specs, generic names are used.- Parameters
dim_type (None, {{"x", "y", "z", "t", "f"}}) – Dimension type
loc – Location
- Returns
str, None – Dimension name or None of not found
See also