From d945d80f15783db309977ec031eed0ba2858694a Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Sun, 13 Sep 2020 16:10:14 -0400 Subject: [PATCH] Search for .pdfs, not .pngs vector -> .png conversion now handled by framework after the POD has run, so searching for .png files as a check that previous parts of the calculation were succefful will fail. NOAA-GFDL/MDTF-diagnostics#20 --- diagnostics/AMOC_3D_Structure/AMOC_3D_Structure.py | 2 +- diagnostics/AMOC_3D_Structure/obs_AMOC_3D_Structure.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/diagnostics/AMOC_3D_Structure/AMOC_3D_Structure.py b/diagnostics/AMOC_3D_Structure/AMOC_3D_Structure.py index f5c50f0e8..2cbf82d35 100644 --- a/diagnostics/AMOC_3D_Structure/AMOC_3D_Structure.py +++ b/diagnostics/AMOC_3D_Structure/AMOC_3D_Structure.py @@ -125,7 +125,7 @@ single_ncl_test(model) #============================================================ -(status, num_png) = commands.getstatusoutput("find "+os.environ["WKDIR"]+" -depth -name 'MFWT_lats_y_plot.png' | wc -l") +(status, num_png) = commands.getstatusoutput("find "+os.environ["WKDIR"]+" -depth -name 'MFWT_lats_y_plot.pdf' | wc -l") num_model=str(len(os.environ["MODELS"].split())) if num_png==num_model: script=os.environ["SRCDIR"]+"sum_Q_lat0_z_plot.ncl" diff --git a/diagnostics/AMOC_3D_Structure/obs_AMOC_3D_Structure.py b/diagnostics/AMOC_3D_Structure/obs_AMOC_3D_Structure.py index b9377eae2..9cf08422f 100644 --- a/diagnostics/AMOC_3D_Structure/obs_AMOC_3D_Structure.py +++ b/diagnostics/AMOC_3D_Structure/obs_AMOC_3D_Structure.py @@ -69,7 +69,7 @@ execute_ncl_calculate(script) #============================================================ -(status, num_png) = commands.getstatusoutput("find "+os.environ["WKDIR"]+" -depth -name 'MFWT_lats_y_plot.png' | wc -l") +(status, num_png) = commands.getstatusoutput("find "+os.environ["WKDIR"]+" -depth -name 'MFWT_lats_y_plot.pdf' | wc -l") num_model=str(len(os.environ["MODELS"].split())) if num_png==num_model: script=os.environ["SRCDIR"]+"ref_MFWT_vs_AMOCr_lat0_dots_plot.ncl"