From 26a81d49bcc1840983d2048032ede3b1c0bbe25e Mon Sep 17 00:00:00 2001 From: Ed Safford <62339196+EdwardSafford-NOAA@users.noreply.github.com> Date: Fri, 20 Oct 2023 10:28:59 -0400 Subject: [PATCH] Ref #99 (#100) Fix control file overwrite and summary plot list update. --- src/Ozone_Monitor/image_gen/ush/mk_summary.sh | 2 +- src/Ozone_Monitor/image_gen/ush/plot_horiz.sh | 2 +- src/Ozone_Monitor/image_gen/ush/plot_summary.sh | 4 ++-- src/Ozone_Monitor/image_gen/ush/plot_time.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Ozone_Monitor/image_gen/ush/mk_summary.sh b/src/Ozone_Monitor/image_gen/ush/mk_summary.sh index bcef3d7..d43437b 100755 --- a/src/Ozone_Monitor/image_gen/ush/mk_summary.sh +++ b/src/Ozone_Monitor/image_gen/ush/mk_summary.sh @@ -66,7 +66,7 @@ for ptype in ${data_source}; do # levels, so when nlev = 1 the plot script doesn't work. # if [[ $type != "omi_aura" && $type != "gome_metop-a" && \ - $type != "gome_metop-b" && $type != "ompstc8_npp" ]]; then + $type != "gome_metop-b" && $type != "ompstc8_npp" && $type != "ompstc8_n20" ]]; then if [[ ${MY_MACHINE} = "hera" || ${MY_MACHINE} = "jet" || ${MY_MACHINE} = "s4" || ${MY_MACHINE} = "orion" ]]; then echo "${ctr} ${OZN_IG_SCRIPTS}/plot_summary.sh $type $ptype" >> $cmdfile diff --git a/src/Ozone_Monitor/image_gen/ush/plot_horiz.sh b/src/Ozone_Monitor/image_gen/ush/plot_horiz.sh index 79fc91b..aeeb159 100755 --- a/src/Ozone_Monitor/image_gen/ush/plot_horiz.sh +++ b/src/Ozone_Monitor/image_gen/ush/plot_horiz.sh @@ -44,7 +44,7 @@ while [[ $ctr -le 3 ]]; do if [[ -d ${tankdir_cdate} ]]; then - if [[ -e ${tankdir_cdate}/${SATYPE}.${dsrc}.ctl ]]; then + if [[ ! -e ./${SATYPE}.${dsrc}.ctl && -e ${tankdir_cdate}/${SATYPE}.${dsrc}.ctl ]]; then $NCP ${tankdir_cdate}/${SATYPE}.${dsrc}.ctl ./ fi diff --git a/src/Ozone_Monitor/image_gen/ush/plot_summary.sh b/src/Ozone_Monitor/image_gen/ush/plot_summary.sh index 879265e..a91c1b5 100755 --- a/src/Ozone_Monitor/image_gen/ush/plot_summary.sh +++ b/src/Ozone_Monitor/image_gen/ush/plot_summary.sh @@ -38,8 +38,8 @@ while [[ $ctr -le 120 ]]; do tankdir_cdate=${tankdir_cdate}/time if [[ -d ${tankdir_cdate} ]]; then - - if [[ -e ${tankdir_cdate}/${SATYPE}.${ptype}.ctl ]]; then + + if [[ ! -e ./${SATYPE}.${ptype}.ctl && -e ${tankdir_cdate}/${SATYPE}.${ptype}.ctl ]]; then $NCP ${tankdir_cdate}/${SATYPE}.${ptype}.ctl ./ fi diff --git a/src/Ozone_Monitor/image_gen/ush/plot_time.sh b/src/Ozone_Monitor/image_gen/ush/plot_time.sh index 1a8ba8c..11c3698 100755 --- a/src/Ozone_Monitor/image_gen/ush/plot_time.sh +++ b/src/Ozone_Monitor/image_gen/ush/plot_time.sh @@ -47,7 +47,7 @@ while [[ $ctr -le 119 ]]; do if [[ -d ${tankdir_cdate} ]]; then - if [[ -e ${tankdir_cdate}/${SATYPE}.${dsrc}.ctl ]]; then + if [[ ! -e ./${SATYPE}.${dsrc}.ctl && -e ${tankdir_cdate}/${SATYPE}.${dsrc}.ctl ]]; then $NCP ${tankdir_cdate}/${SATYPE}.${dsrc}.ctl ./ fi