polaris.ocean.vertical.zlevel.compute_z_level_layer_thickness
- polaris.ocean.vertical.zlevel.compute_z_level_layer_thickness(ref_top_depth, ref_bottom_depth, ssh, bottom_depth, min_level_cell, max_level_cell)[source]
Compute z-level layer thickness from ssh and bottomDepth
- Parameters:
ref_top_depth (xarray.DataArray) – A 1D array of positive-down depths of the top of each z level
ref_bottom_depth (xarray.DataArray) – A 1D array of positive-down depths of the bottom of each z 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:
layerThickness (xarray.DataArray) – The thickness of each layer (level)