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:
ds (xarray.Dataset) – An ocean dataset containing either ‘layerThickness’ directly, or ‘SpecVol’ and ‘PseudoThickness’ to compute it
config (polaris.config.PolarisConfigParser) – Configuration options for the test case
- 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