mpas_tools.ocean.depth.write_time_varying_zmid¶
-
mpas_tools.ocean.depth.
write_time_varying_zmid
(inFileName, outFileName, coordFileName=None, prefix=None)[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 alsobottomDepth
andmaxLevelCell
if nocoordFileName
is provided.outFileName (str) – An output MPAS-Ocean file with
zMid
for each time in the input filecoordFileName (str, optional) – An MPAS-Ocean file with
bottomDepth
andmaxLevelCell
prefix (str, optional) – A prefix on
layerThickness
(in) andzMid
(out), such astimeMonthly_avg_