mpas_analysis.ocean.utility.compute_zinterface
- mpas_analysis.ocean.utility.compute_zinterface(bottomDepth, maxLevelCell, layerThickness)[source]
- Computes zInterface given data arrays for bottomDepth, maxLevelCell and layerThickness - Parameters:
- bottomDepth ( - xarray.DataArray) – the depth of the ocean bottom (positive)
- maxLevelCell ( - xarray.DataArray) – the 0-based vertical index of the bottom of the ocean
- layerThickness ( - xarray.DataArray) – the thickness of MPAS-Ocean layers (possibly as a function of time)
 
- Returns:
- zInterface ( - xarray.DataArray) – the vertical coordinate defining the interfaces between layers, masked below the bathymetry