polaris.ocean.vertical.diagnostics.depth_from_thickness
- polaris.ocean.vertical.diagnostics.depth_from_thickness(ds)[source]
Get the elevation of the midpoint of each layer
A thin face on
get_z_mid_and_interface()for callers that want only the midpoints. What the model wrote is preferred; the geometry is reconstructed fromlayerThicknesswhen it is absent.- Parameters:
ds (xarray.Dataset) – An ocean dataset carrying the geometry or
layerThickness, and optionallysshandbottomDepth- Returns:
z_mid (xarray.DataArray) – The location in meters from the sea surface of the midpoint of each layer, positive upward