xoa.accessors.XoaDataArrayAccessor.get_dim

XoaDataArrayAccessor.get_dim(cf_arg, loc='any')

Get a dimension name knowing its type or generic CF name

This makes use of the CFSpecs() instance was set at initialisation or inferred with xoa.cf.infer_cf_specs(). If no specialized name is declared in the specs, generic names are used.

Parameters:
  • cf_arg (None, {{"x", "y", "z", "t", "f"}}) – Dimension type

  • loc – Location

Returns:

str, None – Dimension name or None of not found