xarray.Dataset.xoa.get_depth¶
- Dataset.xoa.get_depth(errors='ignore')¶
Get the depth as computed or recognized by the
CFSpecs()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, None