xoa.grid.get_dz_terms#
- xoa.grid.get_dz_terms(ds, errors='raise')[source]#
Search a dataset for the layer thicknesses and what is needed to integrate them
- Parameters:
ds (xarray.Dataset)
errors ({'ignore', 'warn', 'raise'}) –
In case of errors
'ignore': silently ignore'warn': emit a warning'raise': raise an exception
- Returns:
tuple or None – The thicknesses, the vertical dimension, the positive attribute, the sea surface height and the bathymetry, the last two being None when not found
See also