Skip to content

Commit

Permalink
Wrap pgb*anl archiving in cycled check
Browse files Browse the repository at this point in the history
- In hpssarch_gen.sh add an if-block to check if cycled MODE
for the pgb*anl files.

Refs NOAA-EMC#1177
  • Loading branch information
KateFriedman-NOAA committed Jan 4, 2023
1 parent 584580f commit 6b84259
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ush/hpssarch_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ if [ $type = "gfs" ]; then
head="gfs.t${cyc}z."

#..................
echo "${dirname}${head}pgrb2b.0p25.anl " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p25.anl.idx " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.anl " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.anl.idx " >>gfs_pgrb2b.txt
if [ $MODE = "cycled" ]; then
echo "${dirname}${head}pgrb2b.0p25.anl " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p25.anl.idx " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.anl " >>gfs_pgrb2b.txt
echo "${dirname}${head}pgrb2b.0p50.anl.idx " >>gfs_pgrb2b.txt
fi

echo "./logs/${CDATE}/gfs*.log " >>gfsa.txt
if [ $MODE = "cycled" ]; then
Expand Down

0 comments on commit 6b84259

Please sign in to comment.