polaris.ocean.vertical.diagnostics.geom_thickness_from_ds

polaris.ocean.vertical.diagnostics.geom_thickness_from_ds(ds, config)[source]

Extract or compute geometric layer thickness from dataset.

Parameters:
Returns:

layer_thickness (xarray.DataArray) – The geometric layer thickness in meters

Raises:

ValueError – If neither layerThickness nor the variables needed to compute it are present in the dataset