compass.ocean.vertical.zlevel.compute_z_level_layer_thickness

compass.ocean.vertical.zlevel.compute_z_level_layer_thickness(refTopDepth, refBottomDepth, ssh, bottomDepth, minLevelCell, maxLevelCell)[source]

Compute z-level layer thickness from ssh and bottomDepth

Parameters:
  • refTopDepth (xarray.DataArray) – A 1D array of positive-down depths of the top of each z level

  • refBottomDepth (xarray.DataArray) – A 1D array of positive-down depths of the bottom of each z level

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

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

  • minLevelCell (xarray.DataArray) – The zero-based index of the top valid level

  • maxLevelCell (xarray.DataArray) – The zero-based index of the bottom valid level

Returns:

layerThickness (xarray.DataArray) – The thickness of each layer (level)