mpas_tools.ocean.depth.add_zmid(inFileName, outFileName, coordFileName=None)[source]

Add a 3D, time-independent depth coordinate to an MPAS-Ocean file.

  • inFileName (str) – An input MPAS-Ocean file that zMid should be added to, used for coords if another file is not provided via coordFileName.

  • outFileName (str) – An output MPAS-Ocean file with zMid added

  • coordFileName (str, optional) – An MPAS-Ocean file with bottomDepth, maxLevelCell and layerThickness but not zMid