polaris.ocean.vertical.zlevel.compute_z_level_resting_thickness
- polaris.ocean.vertical.zlevel.compute_z_level_resting_thickness(layerThickness, ssh, bottomDepth, minLevelCell, maxLevelCell)[source]
Compute z-level resting thickness by “unstretching” layerThickness based on ssh and bottomDepth
- Parameters:
layerThickness (xarray.DataArray) – The thickness of each layer (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:
restingThickness (xarray.DataArray) – The thickness of z-star layers when ssh = 0