Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/exgdas_atmos_verfrad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ if [[ -s ${radstat} && -s ${biascr} ]]; then
netcdf=1
fi

if [[ -f "diag_${type}_ges.${PDATE}*.${Z}" ]]; then
if (( `ls diag_${type}_ges.${PDATE}*.${Z} 2> /dev/null | wc -l` > 0 )); then
Comment thread Fixed
Comment thread Fixed
mv diag_${type}_ges.${PDATE}*.${Z} ${type}.${Z}
${UNCOMPRESS} ./${type}.${Z}
else
echo "WARNING: diag_${type}_ges.${PDATE}*.${Z} not available, skipping"
fi

if [[ $USE_ANL -eq 1 ]]; then
if [[ -f "diag_${type}_anl.${PDATE}*.${Z}" ]]; then
if (( `ls diag_${type}_anl.${PDATE}*.${Z} 2> /dev/null | wc -l` > 0 )); then
Comment thread Fixed
Comment thread Fixed
mv diag_${type}_anl.${PDATE}*.${Z} ${type}_anl.${Z}
${UNCOMPRESS} ./${type}_anl.${Z}
else
Expand Down
19 changes: 10 additions & 9 deletions ush/radmon_verf_angle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,13 @@ else
angl_ctl=angle.${ctl_file}
fi

angl_file=""
if [[ $REGIONAL_RR -eq 1 ]]; then
angl_file=${rgnHH}.${data_file}.${rgnTM}
fi


rm input
if [[ -f input ]]; then rm input; fi

nchanl=-999
cat << EOF > input
Expand Down Expand Up @@ -209,18 +210,18 @@ EOF
${USHradmon}/rstprod.sh

tar_file=radmon_angle.tar
if compgen -G "angle*.ieee_d* angle*.ctl*" > /dev/null; then
if compgen -G "angle*.ieee_d*" > /dev/null || compgen -G "angle*.ctl*" > /dev/null; then
tar -cf $tar_file angle*.ieee_d* angle*.ctl*
${COMPRESS} ${tar_file}
mv $tar_file.${Z} ${TANKverf_rad}/.

if [[ $RAD_AREA = "rgn" ]]; then
cwd=$(pwd)
cd ${TANKverf_rad}
tar -xf ${tar_file}.${Z}
rm ${tar_file}.${Z}
cd ${cwd}
fi
if [[ $RAD_AREA = "rgn" ]]; then
cwd=$(pwd)
cd ${TANKverf_rad}
tar -xf ${tar_file}.${Z}
rm ${tar_file}.${Z}
cd ${cwd}
fi
fi

if [[ $ctr -gt 0 && $fail -eq $ctr || $fail -gt $ctr ]]; then
Expand Down
4 changes: 2 additions & 2 deletions ush/radmon_verf_bcoef.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ else
fi


rm input
if [[ -f input ]]; then rm input; fi


cat << EOF > input
Expand Down Expand Up @@ -206,7 +206,7 @@ EOF

${USHradmon}/rstprod.sh

if compgen -G "bcoef*.ieee_d* bcoef*.ctl*" > /dev/null; then
if compgen -G "bcoef*.ieee_d*" > /dev/null || compgen -G "bcoef*.ctl*" > /dev/null; then
tar_file=radmon_bcoef.tar
tar -cf $tar_file bcoef*.ieee_d* bcoef*.ctl*
${COMPRESS} ${tar_file}
Expand Down
2 changes: 1 addition & 1 deletion ush/radmon_verf_bcor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ EOF
${USHradmon}/rstprod.sh
tar_file=radmon_bcor.tar

if compgen -G "bcor*.ieee_d* bcor*.ctl*" > /dev/null; then
if compgen -G "bcor*.ieee_d*" > /dev/null || compgen -G "bcor*.ctl*" > /dev/null; then
tar -cf $tar_file bcor*.ieee_d* bcor*.ctl*
${COMPRESS} ${tar_file}
mv $tar_file.${Z} ${TANKverf_rad}/.
Expand Down
4 changes: 2 additions & 2 deletions ush/radmon_verf_time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ if [[ $err -eq 0 ]]; then

for dtype in ${gesanl}; do

rm input
if [[ -f input ]]; then rm input; fi

if [[ $dtype == "anl" ]]; then
data_file=${type}_anl.${PDATE}.ieee_d
Expand Down Expand Up @@ -252,7 +252,7 @@ EOF

${USHradmon}/rstprod.sh

if compgen -G "time*.ieee_d* time*.ctl*" > /dev/null; then
if compgen -G "time*.ieee_d*" > /dev/null || compgen -G "time*.ctl*" > /dev/null; then
tar_file=radmon_time.tar
tar -cf $tar_file time*.ieee_d* time*.ctl*
${COMPRESS} ${tar_file}
Expand Down