xarray.DataArray.xoa.get

xarray.DataArray.xoa.get#

DataArray.xoa.get(meta_name, loc='any', single=True, errors='ignore')#

Search for a data array or coordinate knowing its generic CF name

Search is made with the search() method of the MetaSpecs() instance was set at initialisation or inferred with xoa.meta.infer_meta_specs().

Parameters:
  • name (Generic CF)

  • name

  • loc (str, {"any", None}, {"", False}) –

    • str: one of these locations

    • None or “any”: any

    • False or “”: no location

  • errors ({'ignore', 'warn', 'raise'}) –

    In case of errors

    • 'ignore': silently ignore

    • 'warn': emit a warning

    • 'raise': raise an exception

See also

xoa.meta.MetaSpecs.search(), xoa.meta.MetaCoordSpecs.search(), xoa.meta.MetaVarSpecs.search()