xarray.DataArray.xoa.get_depth#
- DataArray.xoa.get_depth(errors='ignore')#
Get the depth, positive down, as computed or recognized by the
MetaSpecs()If a depth variable cannot be found, it uses the z if any, or tries to compute either from sigma-like coordinates or from layer thicknesses.
- Parameters:
errors ({'ignore', 'warn', 'raise'}) –
In case of errors
'ignore': silently ignore'warn': emit a warning'raise': raise an exception
- Returns:
xarray.DataArray, None