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 ignorewarn: emit a warningraise: raise an exception
- Returns
xarray.DataArray or None