xoa.meta.MetaCoordSpecs.get#
- MetaCoordSpecs.get(obj, meta_name, get='obj', errors='ignore')#
A shortcut to
search()with an explicit generic Meta name or a list of them- Parameters:
obj (xarray.DataArray, xarray.Dataset) – Array or dataset to scan
meta_name (str, list(str)) – Generic Meta name to search for. When a list, loop over possible meta_names and stop at the first found.
get ({"obj", "name"}) – “Getthe object or its meta_name.
errors ({'ignore', 'warn', 'raise'}) –
In case of errors
'ignore': silently ignore'warn': emit a warning'raise': raise an exception
A single element is searched for into all
categoriesand errors are ignored.