Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use variable for file locations.
  • Loading branch information
EdwardSafford-NOAA committed Apr 25, 2024
1 parent ebd715b commit 03ba05f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/exobsmon_plot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ${APRUN_PY} ${USHobsmon}/splitPlotYaml.py -i ${plot_yaml} -c ${chan_yaml}
#--------------------------------------------------------------
# Submit OM_sat_plots job if split yields any sat_*.yaml files
#
if compgen -G "./sat_*.yaml" > /dev/null; then
if compgen -G "${DATA}/sat_*.yaml" > /dev/null; then

jobname="OM_sat_plots"
logfile="${OM_LOGS}/${MODEL}/OM_sat_plot.log"
Expand All @@ -39,7 +39,7 @@ if compgen -G "./sat_*.yaml" > /dev/null; then
>$cmdfile
ctr=0

for yaml in ./sat_*.yaml; do
for yaml in ${DATA}/sat_*.yaml; do
echo "${ctr} $yaml"
echo "${ctr} ${APRUN_PY} ${USHobsmon}/plotObsMon.py -i ${yaml} -p ${PDATE}" >> $cmdfile
((ctr+=1))
Expand All @@ -59,14 +59,14 @@ fi
#------------------------------------------------------------------
# Submit OM_min_plots job if split yields a minimization.yaml file
#
if compgen -G "./minimization.yaml" > /dev/null; then
if compgen -G "${DATA}/minimization.yaml" > /dev/null; then

jobname="OM_min_plots"
logfile="${OM_LOGS}/${MODEL}/OM_min_plot.log"
if [[ -e ${logfile} ]]; then rm ${logfile}; fi

cmdfile="OM_min_jobscript"
echo "0 ${APRUN_PY} ${USHobsmon}/plotObsMon.py -i ./minimization.yaml -p ${PDATE}" > $cmdfile
echo "0 ${APRUN_PY} ${USHobsmon}/plotObsMon.py -i ${DATA}/minimization.yaml -p ${PDATE}" > $cmdfile
chmod 755 $cmdfile

echo "submitting job ${jobname}"
Expand All @@ -78,7 +78,7 @@ fi
#------------------------------------------------------------------
# Submit OM_con_plots job if split yields any obs_*.yaml files
#
if compgen -G "./obs*.yaml" > /dev/null; then
if compgen -G "${DATA}/obs*.yaml" > /dev/null; then
echo "have OBS plots"
jobname="OM_obs_plots"
logfile="${OM_LOGS}/${MODEL}/OM_obs_plot.log"
Expand All @@ -88,7 +88,7 @@ if compgen -G "./obs*.yaml" > /dev/null; then
>$cmdfile
ctr=0

for yaml in ./obs*.yaml; do
for yaml in ${DATA}/obs*.yaml; do
echo "${ctr} $yaml"
echo "${ctr} ${APRUN_PY} ${USHobsmon}/plotObsMon.py -i ${yaml} -p ${PDATE}" >> $cmdfile
((ctr+=1))
Expand Down

0 comments on commit 03ba05f

Please sign in to comment.