Skip to content

Commit

Permalink
Optimize gempak_meta ush scripts
Browse files Browse the repository at this point in the history
 On branch feature/gefs_v13_atmos_prep
	modified:   gempak/ush/gefs_meta_mar_00Z.sh
	modified:   gempak/ush/gefs_meta_mar_12Z.sh

Refs: NOAA-EMC#103
  • Loading branch information
XianwuXue-NOAA committed Jan 31, 2023
1 parent 9fc46f0 commit ad17262
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
20 changes: 12 additions & 8 deletions gempak/ush/gefs_meta_mar_00Z.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,27 +263,31 @@ for metaarea in pac atl; do
grids=${memberlist}
for fn in $(echo $grids); do
rm -rf $fn
if [ -r $COMIN/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr} ]; then
ln -s $COMIN/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr} $fn
INFILE=${COMIN}/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi
done

fn=gfs
rm -rf ${fn}
if [ -r $COMINsgfs/gfs.${yesterday}/${gfscyc}/gempak/gfs${sGrid}_${yesterday}${gfscyc}f${fcsthrsgfs} ]; then
ln -s $COMINsgfs/gfs.${yesterday}/${gfscyc}/gempak/gfs${sGrid}_${yesterday}${gfscyc}f${fcsthrsgfs} ${fn}
INFILE=${COMINsgfs}/gfs.${yesterday}/${gfscyc}/gempak/gfs${sGrid}_${yesterday}${gfscyc}f${fcsthrsgfs}
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

fn=ecmwf
rm -rf ${fn}
if [ -r $COMINecmwf.${ecmwfdate}/gempak/ecmwf_hr_${ecmwfdate}${ecmwfcyc}f${fcsthr} ]; then
ln -s $COMINecmwf.${ecmwfdate}/gempak/ecmwf_hr_${ecmwfdate}${ecmwfcyc}f${fcsthr} ${fn}
INFILE=${COMINecmwf}.${ecmwfdate}/gempak/ecmwf_hr_${ecmwfdate}${ecmwfcyc}f${fcsthr}
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

fn=ukmet
rm -rf ${fn}
if [ -r $COMINukmet.${PDY}/gempak/ukmet_hr_${PDY}${cyc}f${fcsthr} ]; then
ln -s $COMINukmet.${PDY}/gempak/ukmet_hr_${PDY}${cyc}f${fcsthr} ${fn}
INFILE=${COMINukmet}.${PDY}/gempak/ukmet_hr_${PDY}${cyc}f${fcsthr}
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

export pgm=gdplot2_nc;. prep_step; startmsg
Expand Down
15 changes: 9 additions & 6 deletions gempak/ush/gefs_meta_mar_12Z.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,21 +212,24 @@ for metaarea in pac atl; do
grids=${memberlist}
for fn in $(echo $grids); do
rm -rf $fn
if [ -r $COMIN/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr} ]; then
ln -s $COMIN/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr} $fn
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi
done

fn=gfs
rm -rf ${fn}
if [ -r $COMINsgfs/gfs.${PDY}/${cyc}/gempak/gfs${sGrid}_${PDY}${cyc}f${fcsthr} ]; then
ln -s $COMINsgfs/gfs.${PDY}/${cyc}/gempak/gfs${sGrid}_${PDY}${cyc}f${fcsthr} ${fn}
INFILE=${COMINsgfs}/gfs.${PDY}/${cyc}/gempak/gfs${sGrid}_${PDY}${cyc}f${fcsthr}
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

fn=nam
rm -rf ${fn}
if [ -r $COMINnam/nam.${PDY}/gempak/nam_${PDY}${cyc}f${fcsthr} ]; then
ln -s $COMINnam/nam.${PDY}/gempak/nam_${PDY}${cyc}f${fcsthr} ${fn}
INFILE=${COMINnam}/nam.${PDY}/gempak/nam_${PDY}${cyc}f${fcsthr}
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

#export pgm=gdplot2_nc;. prep_step; startmsg
Expand Down

0 comments on commit ad17262

Please sign in to comment.