xoa.cf.SGLocator.get_location¶
- SGLocator.get_location(da)[source]¶
Parse a data array name and attributes to find location
- Parameters
da (xarray.DataArray) – Data array to scan
- Returns
None, str –
Noneif no location is found, else the corresponding string- Raises
XoaCFError – When locations parsed from name and attributes are conflicting. Thus, this method method is a way to check location consistency.