Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add check on num files to avoid running exec when pointless.
  • Loading branch information
EdwardSafford-NOAA committed Aug 4, 2022
1 parent d596677 commit 095ab02
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Radiance_Monitor/image_gen/ush/plot_angle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ for type in ${SATYPE2}; do
#
prefix="angle."
dfiles=`ls *.ieee_d`
if [[ $dfiles = "" ]]; then
echo "NO DATA available for $type, aborting bcoef plot"
continue
fi

for file in $dfiles; do
newfile=`basename $file | sed -e "s/^$prefix//"`
mv ./${file} ./${newfile}
Expand Down
5 changes: 5 additions & 0 deletions src/Radiance_Monitor/image_gen/ush/plot_bcoef.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ for type in ${SATYPE}; do
#
prefix="bcoef."
dfiles=`ls *.ieee_d`
if [[ $dfiles = "" ]]; then
echo "NO DATA available for $type, aborting bcoef plot"
continue
fi

for file in $dfiles; do
newfile=`basename $file | sed -e "s/^$prefix//"`
mv ./${file} ./${newfile}
Expand Down
5 changes: 5 additions & 0 deletions src/Radiance_Monitor/image_gen/ush/plot_bcor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ for type in ${SATYPE2}; do
#
prefix="bcor."
dfiles=`ls *.ieee_d`
if [[ $dfiles = "" ]]; then
echo "NO DATA available for $type, aborting bcoef plot"
continue
fi

for file in $dfiles; do
newfile=`basename $file | sed -e "s/^$prefix//"`
mv ./${file} ./${newfile}
Expand Down
5 changes: 5 additions & 0 deletions src/Radiance_Monitor/image_gen/ush/plot_summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ for type in ${SATYPE2}; do
#
prefix="time."
dfiles=`ls *.ieee_d`
if [[ $dfiles = "" ]]; then
echo "NO DATA available for $type, aborting summary plot"
continue
fi

for file in $dfiles; do
newfile=`basename $file | sed -e "s/^$prefix//"`
mv ./${file} ./${newfile}
Expand Down
5 changes: 5 additions & 0 deletions src/Radiance_Monitor/image_gen/ush/plot_time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ for type in ${SATYPE2}; do
#
prefix="time."
dfiles=`ls *.ieee_d`
if [[ $dfiles = "" ]]; then
echo "NO DATA available for $type, aborting time plot"
continue
fi

for file in $dfiles; do
newfile=`basename $file | sed -e "s/^$prefix//"`
mv ./${file} ./${newfile}
Expand Down

0 comments on commit 095ab02

Please sign in to comment.