Commit d0051a7 1 parent f11bf3d commit d0051a7 Copy full SHA for d0051a7
File tree 16 files changed +27
-56
lines changed
16 files changed +27
-56
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ export DO_VERFRAD="YES" # Radiance data assimilation monitoring
78
78
export DO_VMINMON=" YES" # GSI minimization monitoring
79
79
export DO_MOS=" NO" # GFS Model Output Statistics - Only supported on WCOSS2
80
80
81
+ if [[ ${machine} == " HERCULES" ]]; then
82
+ # TODO - Monitor jobs are not yet able to build on Hercules
83
+ export DO_VERFOZN=" NO"
84
+ export DO_VERFRAD=" NO"
85
+ fi
86
+
81
87
# NO for retrospective parallel; YES for real-time parallel
82
88
# arch.sh uses REALTIME for MOS. Need to set REALTIME=YES
83
89
# if want MOS written to HPSS. Should update arch.sh to
Original file line number Diff line number Diff line change @@ -36,9 +36,6 @@ bPDY=$(echo $BDATE | cut -c1-8)
36
36
bcyc=$( echo $BDATE | cut -c9-10)
37
37
38
38
# Utilities
39
- export NCP=${NCP:- " /bin/cp" }
40
- export NMV=${NMV:- " /bin/mv" }
41
- export NLN=${NLN:- " /bin/ln -sf" }
42
39
export CHGRP_CMD=${CHGRP_CMD:- " chgrp ${group_name:- rstprod} " }
43
40
export NCLEN=${NCLEN:- ${USHgfs} / getncdimlen}
44
41
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ export CASE=${CASE:-384}
29
29
ntiles=${ntiles:- 6}
30
30
31
31
# Utilities
32
- NCP=${NCP:- " /bin/cp -p" }
33
- NLN=${NLN:- " /bin/ln -sf" }
34
32
NCLEN=${NCLEN:- ${USHgfs} / getncdimlen}
35
33
36
34
# Scripts
Original file line number Diff line number Diff line change @@ -22,10 +22,6 @@ source "${USHgfs}/preamble.sh"
22
22
# Directories.
23
23
pwd=$( pwd)
24
24
25
- # Utilities
26
- NCP=${NCP:- " /bin/cp" }
27
- NLN=${NLN:- " /bin/ln -sf" }
28
-
29
25
APRUN_EPOS=${APRUN_EPOS:- ${APRUN:- " " } }
30
26
NTHREADS_EPOS=${NTHREADS_EPOS:- 1}
31
27
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ source "${USHgfs}/preamble.sh"
22
22
# Directories.
23
23
pwd=$( pwd)
24
24
25
- # Utilities
26
- export NLN=${NLN:- " /bin/ln -sf" }
27
-
28
25
# Scripts.
29
26
ANALYSISSH=${ANALYSISSH:- ${SCRgfs} / exglobal_atmos_analysis.sh}
30
27
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ export CASE=${CASE:-384}
30
30
ntiles=${ntiles:- 6}
31
31
32
32
# Utilities
33
- NCP=${NCP:- " /bin/cp -p" }
34
- NLN=${NLN:- " /bin/ln -sf" }
35
33
NCLEN=${NCLEN:- ${USHgfs} / getncdimlen}
36
34
37
35
# Scripts
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ source "${USHgfs}/preamble.sh"
23
23
pwd=$( pwd)
24
24
25
25
# Utilities
26
- NCP=${NCP:- " /bin/cp -p" }
27
- NLN=${NLN:- " /bin/ln -sf" }
28
26
NCLEN=${NCLEN:- ${USHgfs} / getncdimlen}
29
27
USE_CFP=${USE_CFP:- " NO" }
30
28
CFP_MP=${CFP_MP:- " NO" }
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ if (( NMEM_ENS > 0 )); then
216
216
MEMDIR=" mem${mem} " YMD=${PDY} HH=${cyc} declare_from_tmpl COM_WAVE_PREP_MEM:COM_WAVE_PREP_TMPL
217
217
mkdir -p " ${COM_WAVE_PREP_MEM} "
218
218
for grdID in ${grdALL} ; do
219
- ${NLN} " ${COM_WAVE_PREP} /${RUN} wave.mod_def.${grdID} " " ${COM_WAVE_PREP_MEM} /"
219
+ ${NLN} " ${COM_WAVE_PREP} /${RUN} wave.mod_def.${grdID} " " ${COM_WAVE_PREP_MEM} /${RUN} wave.mod_def. ${grdID} "
220
220
done
221
221
done
222
222
fi
Original file line number Diff line number Diff line change @@ -38,9 +38,6 @@ bPDY=$(echo ${BDATE} | cut -c1-8)
38
38
bcyc=$( echo ${BDATE} | cut -c9-10)
39
39
40
40
# Utilities
41
- export NCP=${NCP:- " /bin/cp" }
42
- export NMV=${NMV:- " /bin/mv" }
43
- export NLN=${NLN:- " /bin/ln -sf" }
44
41
export CHGRP_CMD=${CHGRP_CMD:- " chgrp ${group_name:- rstprod} " }
45
42
export NCLEN=${NCLEN:- ${USHgfs} / getncdimlen}
46
43
COMPRESS=${COMPRESS:- gzip}
@@ -387,8 +384,13 @@ ${NLN} ${FIXgfs}/gsi/IASI_CLDDET.NL IASI_CLDDET.NL
387
384
# If using correlated error, link to the covariance files
388
385
if [ ${USE_CORRELATED_OBERRS} == " YES" ]; then
389
386
if grep -q " Rcov" ${ANAVINFO} ; then
390
- if ls ${FIXgfs} /gsi/Rcov* 1> /dev/null 2>&1 ; then
391
- ${NLN} ${FIXgfs} /gsi/Rcov* ${DATA}
387
+ # shellcheck disable=SC2312
388
+ mapfile -t covfile_array < <( find " ${FIXgfs} /gsi/" -name " Rcov*" )
389
+ if (( ${# covfile_array[@]} > 0 )) ; then
390
+ for covfile in " ${covfile_array[@]} " ; do
391
+ covfile_base=$( basename " ${covfile} " )
392
+ ${NLN} " ${covfile} " " ${DATA} /${covfile_base} "
393
+ done
392
394
echo " using correlated obs error"
393
395
else
394
396
echo " FATAL ERROR: Satellite error covariance files (Rcov) are missing."
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ CDUMP=${CDUMP:-"gdas"}
29
29
GDUMP=${GDUMP:- " gdas" }
30
30
31
31
# Utilities
32
- export NCP=${NCP:- " /bin/cp" }
33
- export NMV=${NMV:- " /bin/mv" }
34
- export NLN=${NLN:- " /bin/ln -sf" }
35
32
export CHGRP_CMD=${CHGRP_CMD:- " chgrp ${group_name:- rstprod} " }
36
33
export NCLEN=${NCLEN:- ${USHgfs} / getncdimlen}
37
34
COMPRESS=${COMPRESS:- gzip}
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ bPDY=${BDATE:0:8}
33
33
bcyc=${BDATE: 8: 2}
34
34
35
35
# Utilities
36
- export NCP=${NCP:- " /bin/cp" }
37
- export NMV=${NMV:- " /bin/mv" }
38
- export NLN=${NLN:- " /bin/ln -sf" }
39
36
export CHGRP_CMD=${CHGRP_CMD:- " chgrp ${group_name:- rstprod} " }
40
37
export NCLEN=${NCLEN:- ${USHgfs} / getncdimlen}
41
38
COMPRESS=${COMPRESS:- gzip}
Original file line number Diff line number Diff line change @@ -30,9 +30,6 @@ CDUMP=${CDUMP:-"gdas"}
30
30
GDUMP=${GDUMP:- " gdas" }
31
31
32
32
# Utilities
33
- export NCP=${NCP:- " /bin/cp" }
34
- export NMV=${NMV:- " /bin/mv" }
35
- export NLN=${NLN:- " /bin/ln -sf" }
36
33
export CHGRP_CMD=${CHGRP_CMD:- " chgrp ${group_name:- rstprod} " }
37
34
export NCLEN=${NCLEN:- ${USHgfs} / getncdimlen}
38
35
export CATEXEC=${CATEXEC:- ${ncdiag_ROOT:- ${gsi_ncdiag_ROOT} } / bin/ ncdiag_cat_serial.x}
Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ SIGLEVEL=${SIGLEVEL:-${FIXgfs}/am/global_hyblev.l${LEVSP1}.txt}
122
122
CDATE=${CDATE:? }
123
123
124
124
# Other variables.
125
- export NLN=${NLN:- " /bin/ln -sf" }
126
125
export PGMOUT=${PGMOUT:- ${pgmout:- ' &1' } }
127
126
export PGMERR=${PGMERR:- ${pgmerr:- ' &2' } }
128
127
export REDOUT=${REDOUT:- ' 1>' }
@@ -133,17 +132,9 @@ export REDERR=${REDERR:-'2>'}
133
132
# Preprocessing
134
133
${INISCRIPT:- }
135
134
pwd=$( pwd)
136
- if [[ -d $DATA ]]
137
- then
138
- mkdata=NO
139
- else
140
- mkdir -p $DATA
141
- mkdata=YES
142
- fi
143
- cd $DATA || exit 99
135
+ cd " ${DATA} " || exit 99
144
136
[[ -d " ${COM_ATMOS_ANALYSIS} " ]] || mkdir -p " ${COM_ATMOS_ANALYSIS} "
145
137
[[ -d " ${COM_ATMOS_RESTART} " ]] || mkdir -p " ${COM_ATMOS_RESTART} "
146
- cd $DATA
147
138
148
139
# ###############################################################################
149
140
# Make surface analysis
@@ -207,6 +198,5 @@ $ERRSCRIPT||exit 2
207
198
# ###############################################################################
208
199
# Postprocessing
209
200
cd $pwd
210
- [[ $mkdata = YES ]]&& rmdir $DATA
211
201
212
202
exit ${err}
Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ for what in "amsre_aqua" "imgr_g11" "imgr_g12" "imgr_g13" \
22
22
" ssmi_f13" " ssmi_f14" " ssmi_f15" " ssmis_f16" \
23
23
" ssmis_f17" " ssmis_f18" " ssmis_f19" " ssmis_f20" \
24
24
" tmi_trmm" " v.seviri_m10" " imgr_insat3d" " abi_gr" " ahi_himawari8" ; do
25
- ln -s " ${CRTM_FIX} /${what} .TauCoeff.bin" .
26
- ln -s " ${CRTM_FIX} /${what} .SpcCoeff.bin" .
25
+ ln -s " ${CRTM_FIX} /${what} .TauCoeff.bin" " ${what} .TauCoeff.bin "
26
+ ln -s " ${CRTM_FIX} /${what} .SpcCoeff.bin" " ${what} .SpcCoeff.bin "
27
27
done
28
28
29
29
for what in ' Aerosol' ' Cloud' ; do
30
- ln -s " ${CRTM_FIX} /${what} Coeff.bin" .
30
+ ln -s " ${CRTM_FIX} /${what} Coeff.bin" " ${what} Coeff.bin "
31
31
done
32
32
33
- for what in ${CRTM_FIX} /* Emis* ; do
34
- ln -s ${what} .
33
+ for what in " ${CRTM_FIX} /" * Emis* ; do
34
+ ln -s " ${what} " " $( basename " ${what} " ) "
35
35
done
36
36
37
37
exit 0
Original file line number Diff line number Diff line change @@ -85,18 +85,16 @@ source "${USHgfs}/preamble.sh"
85
85
rm -f ${DATA} /output_${ymdh} 0000/out_grd.$grdID
86
86
87
87
if [ ! -f ${DATA} /${grdID} _interp.inp.tmpl ]; then
88
- cp ${PARMgfs} /wave/${grdID} _interp.inp.tmpl ${DATA}
88
+ cp " ${PARMgfs} /wave/${grdID} _interp.inp.tmpl" " ${DATA} / ${grdID} _interp.inp.tmpl "
89
89
fi
90
- ln -sf ${DATA} /${grdID} _interp.inp.tmpl .
90
+ ln -sf " ${DATA} /${grdID} _interp.inp.tmpl" " ${grdID} _interp.inp.tmpl "
91
91
92
- for ID in $waveGRD
93
- do
94
- ln -sf ${DATA} /output_${ymdh} 0000/out_grd.$ID .
92
+ for ID in ${waveGRD} ; do
93
+ ln -sf " ${DATA} /output_${ymdh} 0000/out_grd.${ID} " " out_grd.${ID} "
95
94
done
96
95
97
- for ID in $waveGRD $grdID
98
- do
99
- ln -sf ${DATA} /mod_def.$ID .
96
+ for ID in ${waveGRD} ${grdID} ; do
97
+ ln -sf " ${DATA} /mod_def.${ID} " " mod_def.${ID} "
100
98
done
101
99
102
100
# --------------------------------------------------------------------------- #
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ source "${USHgfs}/preamble.sh"
36
36
rm -rf ice
37
37
mkdir ice
38
38
cd ice
39
- ln -s ${DATA} /postmsg .
39
+ ln -s " ${DATA} /postmsg" postmsg
40
40
41
41
# 0.b Define directories and the search path.
42
42
# The tested variables should be exported by the postprocessor script.
You can’t perform that action at this time.
0 commit comments