mpas_tools.ocean.depth.compute_depth¶
-
mpas_tools.ocean.depth.
compute_depth
(refBottomDepth)[source]¶ Computes depth and depth bounds given refBottomDepth
- Parameters
refBottomDepth (
xarray.DataArray
) – the depth of the bottom of each vertical layer in the initial state (perfect z-level coordinate)- Returns
depth (
xarray.DataArray
) – the vertical coordinate defining the middle of each layerdepth_bnds (
xarray.DataArray
) – the vertical coordinate defining the top and bottom of each layer