mpas_tools.ocean.depth.write_time_varying_zmid

mpas_tools.ocean.depth.write_time_varying_zmid(inFileName, outFileName, coordFileName=None, prefix='')[source]

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

Parameters:
  • inFileName (str) – An input MPAS-Ocean file with some form of layerThickness, and also bottomDepth and maxLevelCell if no coordFileName is provided.

  • outFileName (str) – An output MPAS-Ocean file with zMid for each time in the input file

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

  • prefix (str, optional) – A prefix on layerThickness (in) and zMid (out), such as timeMonthly_avg_