polaris.ocean.vertical.zlevel.compute_z_level_resting_thickness
- polaris.ocean.vertical.zlevel.compute_z_level_resting_thickness(layer_thickness, ssh, bottom_depth, min_level_cell, max_level_cell)[source]
Compute z-level resting thickness by “unstretching” layerThickness based on ssh and bottomDepth
- Parameters:
layer_thickness (xarray.DataArray) – The thickness of each layer (level)
ssh (xarray.DataArray) – The sea surface height
bottom_depth (xarray.DataArray) – The positive-down depth of the seafloor
min_level_cell (xarray.DataArray) – The zero-based index of the top valid level
max_level_cell (xarray.DataArray) – The zero-based index of the bottom valid level
- Returns:
restingThickness (xarray.DataArray) – The thickness of z-star layers when ssh = 0