xarray.DataArray.xoa.get_z

xarray.DataArray.xoa.get_z#

DataArray.xoa.get_z(errors='ignore')#

Get the z, positive up, as computed or recognized by the MetaSpecs()

If a z variable cannot be found, it uses the depth 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