xoa.meta.MetaCoordSpecs.match

xoa.meta.MetaCoordSpecs.match#

MetaCoordSpecs.match(da, meta_name=None, loc=None)#

Check if da attributes match given or any specs

Parameters:
  • da (xarray.DataArray)

  • meta_name (str, dict, None) – Meta name. If None, all names are used. If a dict, name is interpreted as an explicit set of specifications.

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

    • str: one of these locations

    • None or “any”: any

    • False or ‘””: no location

Returns:

bool, str – True or False if name is provided, else found name or None