polaris.ocean.vertical.sigma.compute_sigma_layer_thickness

polaris.ocean.vertical.sigma.compute_sigma_layer_thickness(ref_interfaces, ssh, bottom_depth, max_level=None)[source]

Compute sigma layer thickness by stretching restingThickness based on ssh and bottom_depth

Parameters:
  • ref_interfaces (xarray.DataArray) – the interfaces of the reference coordinate used to define sigma layer spacing. The interfaces are renormalized to be between 0 and 1

  • ssh (xarray.DataArray) – The sea surface height

  • bottom_depth (xarray.DataArray) – The positive-down depth of the seafloor

  • max_level (int, optional) – The maximum number of levels used for the sigma coordinate. The default is nVertLevels.

Returns:

layer_thickness (xarray.DataArray) – The thickness of each layer