xoa.thermdyn.get_temp
- xoa.thermdyn.get_temp(ds, variant=None, errors='warn')[source]
Search for temperature in a dataset
- Parameters:
da (xarray.Dataset) –
variant (None, str, list(str)) – Variant of temperature or list of them. See
is_temp()
.errors ({'ignore', 'warn', 'raise'}) –
In case of errors
'ignore'
: silently ignore'warn'
: emit a warning'raise'
: raise an exception
- Returns:
xarray.DataArray, None – If None or several arrays are found, a warning or an error may be raised depending on the errors parameter. If several arrays are matching and errors is “warning”, the first array is returned.