Skip to content

Commit

Permalink
Make the link works on both old & new COM
Browse files Browse the repository at this point in the history
 On branch feature/gefs_v13_atmos_prep
	modified:   gempak/ush/gefs_avgspr_meta.sh

Refs: NOAA-EMC#103
  • Loading branch information
XianwuXue-NOAA committed Jan 30, 2023
1 parent f92bf3f commit 9fc46f0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion gempak/ush/gefs_avgspr_meta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,17 @@ done


# Make metafiles for North and South America...as well as Alaska.
#ln -s $COMIN/geavg${sGrid}_${PDY}${cyc}f* ./
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
for f in `ls ${COMINavg}/gefs${sGrid}_${PDY}${cyc}f*`
do
echo ${f}
f_base=$(basename ${f})
f_base=${f_base/gefs/geavg}
ln -s ${f} ./${f_base}
done
else
ln -s $COMIN/geavg${sGrid}_${PDY}${cyc}f* ./
fi

for area in nam sam ak; do
if [ ${area} = "nam" ] ; then
Expand Down

0 comments on commit 9fc46f0

Please sign in to comment.