sloop.cf.get_name_from_specs
- sloop.cf.get_name_from_specs(ds, specs, check=None, first=True)[source]
Get the name of a xarray.DataArray according to search specifications
- Parameters
ds (xarray.DataArray or xarray.Dataset) –
specs (dict) –
check (str, list of str) – Attributes to check
first (bool) –
- Returns
str
- Return type
Name of the xarray.DataArray