polaris.ocean.init_state.layer_thickness_from_geom_interfaces
- polaris.ocean.init_state.layer_thickness_from_geom_interfaces(ds)[source]
Compute
restingThicknessandlayerThicknessfrom geometric interface heights inds.Both fields equal the geometric layer thickness (appropriate for a quiescent initialisation). Layers below the seafloor are zeroed out using
cellMask.- Parameters:
ds (xarray.Dataset) – Dataset containing
GeomZInterfaceandcellMask, for example produced bypolaris.ocean.vertical.pstar_init.PStarInitStep.- Returns:
xarray.Dataset – Dataset with
restingThicknessandlayerThicknessadded.