Skip to content

Commit

Permalink
Issue #1: check for existence of 0p50 and 1p00 pgrb files before atte…
Browse files Browse the repository at this point in the history
…mpting to write to HPSS
  • Loading branch information
RussTreadon-NOAA committed Jun 8, 2020
1 parent a7306aa commit 5a8b8f2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions ush/hpssarch_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ if [ $type = "gfs" ]; then
fhr=$(printf %03i $fh)
echo "${dirname}${head}pgrb2b.0p25.f${fhr} " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p25.f${fhr}.idx " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.f${fhr} " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.f${fhr}.idx " >>gfs_pgrb2b.txt
if [ -s $ROTDIR/${dirpath}${head}pgrb2b.0p50.f${fhr} ]; then
echo "${dirname}${head}pgrb2b.0p50.f${fhr} " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.f${fhr}.idx " >>gfs_pgrb2b.txt
fi

echo "${dirname}${head}sfluxgrbf${fhr}.grib2 " >>gfs_flux.txt
echo "${dirname}${head}sfluxgrbf${fhr}.grib2.idx " >>gfs_flux.txt
Expand All @@ -96,10 +98,14 @@ if [ $type = "gfs" ]; then
echo "${dirname}${head}pgrb2.0p25.f${fhr}.idx " >>gfsa.txt
echo "${dirname}${head}logf${fhr}.txt " >>gfsa.txt

echo "${dirname}${head}pgrb2.0p50.f${fhr} " >>gfsb.txt
echo "${dirname}${head}pgrb2.0p50.f${fhr}.idx " >>gfsb.txt
echo "${dirname}${head}pgrb2.1p00.f${fhr} " >>gfsb.txt
echo "${dirname}${head}pgrb2.1p00.f${fhr}.idx " >>gfsb.txt
if [ -s $ROTDIR/${dirpath}}${head}pgrb2.0p50.f${fhr} ]; then
echo "${dirname}${head}pgrb2.0p50.f${fhr} " >>gfsb.txt
echo "${dirname}${head}pgrb2.0p50.f${fhr}.idx " >>gfsb.txt
fi
if [ -s $ROTDIR/${dirpath}${head}pgrb2.1p00.f${fhr} ]; then
echo "${dirname}${head}pgrb2.1p00.f${fhr} " >>gfsb.txt
echo "${dirname}${head}pgrb2.1p00.f${fhr}.idx " >>gfsb.txt
fi

inc=$FHOUT_GFS
if [ $FHMAX_HF_GFS -gt 0 -a $FHOUT_HF_GFS -gt 0 -a $fh -lt $FHMAX_HF_GFS ]; then
Expand Down

0 comments on commit 5a8b8f2

Please sign in to comment.