Skip to content

Commit

Permalink
Ref #99
Browse files Browse the repository at this point in the history
Fix control file overwrite and summary plot list update.
  • Loading branch information
EdwardSafford-NOAA committed Sep 26, 2023
1 parent cbdceac commit 9f1de98
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Ozone_Monitor/image_gen/ush/mk_summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Ozone_Monitor/image_gen/ush/plot_horiz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/Ozone_Monitor/image_gen/ush/plot_summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ while [[ $ctr -le 120 ]]; do
tankdir_cdate=${tankdir_cdate}/time

if [[ -d ${tankdir_cdate} ]]; then
if [[ -e ${tankdir_cdate}/${SATYPE}.${ptype}.ctl ]]; then
$NCP ${tankdir_cdate}/${SATYPE}.${ptype}.ctl ./

if [[ ! -e ./${SATYPE}.${ptype}.ctl && -e ${tankdir_cdate}/${SATYPE}.${ptype}.ctl ]]; then
$NCP ${tankdir_cdate}/${SATYPE}.${ptype}.ctl ./
fi

if compgen -G "${tankdir_cdate}/${SATYPE}.${ptype}.${c_pdy}*ieee_d*" > /dev/null; then
Expand Down
2 changes: 1 addition & 1 deletion src/Ozone_Monitor/image_gen/ush/plot_time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9f1de98

Please sign in to comment.