xoa.coords.get_depth#
- xoa.coords.get_depth(da, errors='raise')[source]#
Get or compute the depth coordinate
If a depth variable cannot be found, it tries to compute either from sigma-like coordinates or from layer thinknesses.
- Parameters:
errors ({'ignore', 'warn', 'raise'}) –
In case of errors
'ignore': silently ignore'warn': emit a warning'raise': raise an exception
- Returns:
xarray.DataArray or None