Skip to content

Commit

Permalink
RadMon, correct handling of satype file
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardSafford-NOAA committed Mar 17, 2018
1 parent ea9733b commit 7fdcd04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
24 changes: 9 additions & 15 deletions scripts/exgdas_vrfyrad.sh.ecf
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,15 @@ if [[ -s ${radstat} && -s ${biascr} ]]; then
use_tankdir=${TANKverf_rad}
fi

if [[ ! -e ${use_tankdir}/${satype_file} ]]; then
if [[ ! -e ${FIXgdas}/${satype_file} ]]; then
export SATYPE=$radstat_satype
if [[ "$VERBOSE" = "YES" ]]; then
echo " ${satype_file} not found. Adding it now using radstat file contents."
fi
else
export SATYPE=`cat ${FIXgdas}/${satype_file}`
fi
echo satype_file = $satype_file
if [[ -e ${FIXgdas}/${satype_file} ]]; then
echo "using SATYPE as cat ${FIXgdas}/${satype_file}"
export SATYPE=`cat ${FIXgdas}/${satype_file}`
else
export SATYPE=`cat ${use_tankdir}/${satype_file}`
echo "using SATYPE as $radstat_satype"
export SATYPE=$radstat_satype
fi


#-------------------------------------------------------------
# Update the SATYPE if any new sat/instrument was
# found in $radstat_satype. Write the SATYPE contents back
Expand All @@ -160,11 +155,10 @@ if [[ -s ${radstat} && -s ${biascr} ]]; then
done

#------------------------------------------------------------------
# If there is no satype_file in the current day's radmon.${PDY}
# directory or if changes have occurred in the SATYPE list, then
# add/update the satype_file.
# If changes have occurred in the SATYPE list, then
# update the satype_file and journal a copy to TANKverf_rad.
#------------------------------------------------------------------
if [[ ! -s ${TANKverf_rad}/${satype_file} || $satype_changes -eq 1 ]]; then
if [[ $satype_changes -eq 1 ]]; then
if [[ ! -d ${TANKverf_rad} ]]; then
mkdir -f ${TANKverf_rad}
fi
Expand Down
1 change: 1 addition & 0 deletions ush/radmon_verf_time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ if [[ $err -eq 0 ]]; then

if [[ ! -s ${type} ]]; then
echo "ZERO SIZED: ${type}"
echo ${type} >> ${diag}
continue
fi

Expand Down

0 comments on commit 7fdcd04

Please sign in to comment.