@@ -29,7 +29,7 @@ ${APRUN_PY} ${USHobsmon}/splitPlotYaml.py -i ${plot_yaml} -c ${chan_yaml}
29
29
# --------------------------------------------------------------
30
30
# Submit OM_sat_plots job if split yields any sat_*.yaml files
31
31
#
32
- if compgen -G " . /sat_*.yaml" > /dev/null; then
32
+ if compgen -G " ${DATA} /sat_*.yaml" > /dev/null; then
33
33
34
34
jobname=" OM_sat_plots"
35
35
logfile=" ${OM_LOGS} /${MODEL} /OM_sat_plot.log"
@@ -39,7 +39,7 @@ if compgen -G "./sat_*.yaml" > /dev/null; then
39
39
> $cmdfile
40
40
ctr=0
41
41
42
- for yaml in . /sat_* .yaml; do
42
+ for yaml in ${DATA} /sat_* .yaml; do
43
43
echo " ${ctr} $yaml "
44
44
echo " ${ctr} ${APRUN_PY} ${USHobsmon} /plotObsMon.py -i ${yaml} -p ${PDATE} " >> $cmdfile
45
45
(( ctr+= 1 ))
59
59
# ------------------------------------------------------------------
60
60
# Submit OM_min_plots job if split yields a minimization.yaml file
61
61
#
62
- if compgen -G " . /minimization.yaml" > /dev/null; then
62
+ if compgen -G " ${DATA} /minimization.yaml" > /dev/null; then
63
63
64
64
jobname=" OM_min_plots"
65
65
logfile=" ${OM_LOGS} /${MODEL} /OM_min_plot.log"
66
66
if [[ -e ${logfile} ]]; then rm ${logfile} ; fi
67
67
68
68
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
70
70
chmod 755 $cmdfile
71
71
72
72
echo " submitting job ${jobname} "
78
78
# ------------------------------------------------------------------
79
79
# Submit OM_con_plots job if split yields any obs_*.yaml files
80
80
#
81
- if compgen -G " . /obs*.yaml" > /dev/null; then
81
+ if compgen -G " ${DATA} /obs*.yaml" > /dev/null; then
82
82
echo " have OBS plots"
83
83
jobname=" OM_obs_plots"
84
84
logfile=" ${OM_LOGS} /${MODEL} /OM_obs_plot.log"
@@ -88,7 +88,7 @@ if compgen -G "./obs*.yaml" > /dev/null; then
88
88
> $cmdfile
89
89
ctr=0
90
90
91
- for yaml in . /obs* .yaml; do
91
+ for yaml in ${DATA} /obs* .yaml; do
92
92
echo " ${ctr} $yaml "
93
93
echo " ${ctr} ${APRUN_PY} ${USHobsmon} /plotObsMon.py -i ${yaml} -p ${PDATE} " >> $cmdfile
94
94
(( ctr+= 1 ))
0 commit comments