Skip to content

Commit 03ba05f

Browse files
Use variable for file locations.
1 parent ebd715b commit 03ba05f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/exobsmon_plot.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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))
@@ -59,14 +59,14 @@ fi
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}"
@@ -78,7 +78,7 @@ fi
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

Comments
 (0)