@@ -29,7 +29,7 @@ ${APRUN_PY} ${USHobsmon}/splitPlotYaml.py -i ${plot_yaml} -c ${chan_yaml}
2929# --------------------------------------------------------------
3030# Submit OM_sat_plots job if split yields any sat_*.yaml files
3131#
32- if compgen -G " . /sat_*.yaml" > /dev/null; then
32+ if compgen -G " ${DATA} /sat_*.yaml" > /dev/null; then
3333
3434 jobname=" OM_sat_plots"
3535 logfile=" ${OM_LOGS} /${MODEL} /OM_sat_plot.log"
@@ -39,7 +39,7 @@ if compgen -G "./sat_*.yaml" > /dev/null; then
3939 > $cmdfile
4040 ctr=0
4141
42- for yaml in . /sat_* .yaml; do
42+ for yaml in ${DATA} /sat_* .yaml; do
4343 echo " ${ctr} $yaml "
4444 echo " ${ctr} ${APRUN_PY} ${USHobsmon} /plotObsMon.py -i ${yaml} -p ${PDATE} " >> $cmdfile
4545 (( ctr+= 1 ))
5959# ------------------------------------------------------------------
6060# Submit OM_min_plots job if split yields a minimization.yaml file
6161#
62- if compgen -G " . /minimization.yaml" > /dev/null; then
62+ if compgen -G " ${DATA} /minimization.yaml" > /dev/null; then
6363
6464 jobname=" OM_min_plots"
6565 logfile=" ${OM_LOGS} /${MODEL} /OM_min_plot.log"
6666 if [[ -e ${logfile} ]]; then rm ${logfile} ; fi
6767
6868 cmdfile=" OM_min_jobscript"
69- echo " 0 ${APRUN_PY} ${USHobsmon} /plotObsMon.py -i . /minimization.yaml -p ${PDATE} " > $cmdfile
69+ echo " 0 ${APRUN_PY} ${USHobsmon} /plotObsMon.py -i ${DATA} /minimization.yaml -p ${PDATE} " > $cmdfile
7070 chmod 755 $cmdfile
7171
7272 echo " submitting job ${jobname} "
7878# ------------------------------------------------------------------
7979# Submit OM_con_plots job if split yields any obs_*.yaml files
8080#
81- if compgen -G " . /obs*.yaml" > /dev/null; then
81+ if compgen -G " ${DATA} /obs*.yaml" > /dev/null; then
8282 echo " have OBS plots"
8383 jobname=" OM_obs_plots"
8484 logfile=" ${OM_LOGS} /${MODEL} /OM_obs_plot.log"
@@ -88,7 +88,7 @@ if compgen -G "./obs*.yaml" > /dev/null; then
8888 > $cmdfile
8989 ctr=0
9090
91- for yaml in . /obs* .yaml; do
91+ for yaml in ${DATA} /obs* .yaml; do
9292 echo " ${ctr} $yaml "
9393 echo " ${ctr} ${APRUN_PY} ${USHobsmon} /plotObsMon.py -i ${yaml} -p ${PDATE} " >> $cmdfile
9494 (( ctr+= 1 ))
0 commit comments