Skip to content

Commit

Permalink
Modify gempak_meta to use new COM
Browse files Browse the repository at this point in the history
 On branch feature/gefs_v13_atmos_prep
	modified:   gempak/ush/gefs_meta_850.sh_comb
	modified:   gempak/ush/gefs_meta_carib_spag.sh_comb
	modified:   gempak/ush/gefs_meta_hi_spag.sh_comb
	modified:   gempak/ush/gefs_meta_lows.sh_comb
	modified:   gempak/ush/gefs_meta_mar_00Z.sh
	modified:   gempak/ush/gefs_meta_mar_12Z.sh
	modified:   gempak/ush/gefs_meta_nam_spag.sh_comb
	modified:   gempak/ush/gefs_meta_qpf.sh
	modified:   gempak/ush/gefs_meta_sam_spag.sh_comb
	modified:   jobs/JGEFS_ATMOS_AVGSPR_GEMPAK_META
	modified:   jobs/JGEFS_ATMOS_GEMPAK_META

Refs: NOAA-EMC#103
  • Loading branch information
XianwuXue-NOAA committed Jan 31, 2023
1 parent ad17262 commit 1b6cd5d
Show file tree
Hide file tree
Showing 11 changed files with 195 additions and 71 deletions.
28 changes: 22 additions & 6 deletions gempak/ush/gefs_meta_850.sh_comb
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,43 @@ for area in us sam; do
for fn in $(echo $grids); do
rm -rf $fn ${fn}_6

INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/${fn}/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi

INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/${fn}/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}_6
fi
done

fn=gefs_avg
rm -rf ${fn}
INFILE=${COMIN}/${COMPONENT}/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/avg/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

fn=gefs_avg_6
rm -rf ${fn}
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/avg/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi
Expand Down Expand Up @@ -408,9 +424,9 @@ if [[ $err != 0 ]]; then
fi

if [ $SENDCOM = "YES" ] ; then
mv ${metaname} ${COMOUT}/$COMPONENT/gempak/meta/$metaname
mv ${metaname} ${COMOUT}/${metaname}
if [ $SENDDBN = "YES" ] ; then
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/$COMPONENT/gempak/meta/$metaname
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/${metaname}
fi
fi

Expand Down
28 changes: 22 additions & 6 deletions gempak/ush/gefs_meta_carib_spag.sh_comb
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,43 @@ for pres in 200 250 300; do
for fn in $(echo $grids); do
rm -rf $fn ${fn}_6

INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/${fn}/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi

INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/${fn}/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}_6
fi
done

fn=gefs_avg
rm -rf ${fn}
INFILE=${COMIN}/${COMPONENT}/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/avg/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

fn=gefs_avg_6
rm -rf ${fn}
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/avg/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi
Expand Down Expand Up @@ -425,9 +441,9 @@ if [[ $err != 0 ]]; then
fi

if [ $SENDCOM = "YES" ] ; then
mv ${metaname} ${COMOUT}/$COMPONENT/gempak/meta/$metaname
mv ${metaname} ${COMOUT}/${metaname}
if [ $SENDDBN = "YES" ] ; then
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/$COMPONENT/gempak/meta/$metaname
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/${metaname}
fi
fi

Expand Down
28 changes: 22 additions & 6 deletions gempak/ush/gefs_meta_hi_spag.sh_comb
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,43 @@ for level in ${levels}; do
for fn in $(echo $grids); do
rm -rf $fn ${fn}_6

INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/${fn}/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi

INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/${fn}/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}_6
fi
done

fn=gefs_avg
rm -rf ${fn}
INFILE=${COMIN}/${COMPONENT}/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/avg/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

fn=gefs_avg_6
rm -rf ${fn}
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/avg/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi
Expand Down Expand Up @@ -416,9 +432,9 @@ if [[ $err != 0 ]]; then
fi

if [ $SENDCOM = "YES" ] ; then
mv ${metaname} ${COMOUT}/$COMPONENT/gempak/meta/$metaname
mv ${metaname} ${COMOUT}/${metaname}
if [ $SENDDBN = "YES" ] ; then
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/$COMPONENT/gempak/meta/$metaname
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/${metaname}
fi
fi

Expand Down
28 changes: 22 additions & 6 deletions gempak/ush/gefs_meta_lows.sh_comb
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,43 @@ for area in nam us trop sam hi; do
do
rm -rf $fn ${fn}_6

INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/${fn}/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi

INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/${fn}/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}_6
fi
done

fn=gefs_avg
rm -rf ${fn}
INFILE=${COMIN}/${COMPONENT}/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/avg/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

fn=gefs_avg_6
rm -rf ${fn}
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/avg/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi
Expand Down Expand Up @@ -430,9 +446,9 @@ if [[ $err != 0 ]]; then
fi

if [ $SENDCOM = "YES" ] ; then
mv ${metaname} ${COMOUT}/$COMPONENT/gempak/meta/$metaname
mv ${metaname} ${COMOUT}/${metaname}
if [ $SENDDBN = "YES" ] ; then
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/$COMPONENT/gempak/meta/$metaname
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/${metaname}
fi
fi

Expand Down
10 changes: 7 additions & 3 deletions gempak/ush/gefs_meta_mar_00Z.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ for metaarea in pac atl; do
grids=${memberlist}
for fn in $(echo $grids); do
rm -rf $fn
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/${fn}/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi
Expand Down Expand Up @@ -454,9 +458,9 @@ for metaarea in pac atl; do
fi

if [ $SENDCOM = "YES" ] ; then
mv ${metaname} ${COMOUT}/$COMPONENT/gempak/meta/
mv ${metaname} ${COMOUT}/
if [ $SENDDBN = "YES" ] ; then
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/$COMPONENT/gempak/meta/${metaname}
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/${metaname}
fi
fi
done
Expand Down
16 changes: 12 additions & 4 deletions gempak/ush/gefs_meta_mar_12Z.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ for metaarea in pac atl; do
grids=${memberlist}
for fn in $(echo $grids); do
rm -rf $fn
INFILE=${COMIN}/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/${fn}/$COMPONENT/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi
Expand Down Expand Up @@ -212,7 +216,11 @@ for metaarea in pac atl; do
grids=${memberlist}
for fn in $(echo $grids); do
rm -rf $fn
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/${fn}/${COMPONENT}/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/${COMPONENT}/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi
Expand Down Expand Up @@ -372,9 +380,9 @@ for metaarea in pac atl; do
fi

if [ $SENDCOM = "YES" ] ; then
mv ${metaname} ${COMOUT}/$COMPONENT/gempak/meta/
mv ${metaname} ${COMOUT}/
if [ $SENDDBN = "YES" ] ; then
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/$COMPONENT/gempak/meta/${metaname}
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/${metaname}
fi
fi
done
Expand Down
28 changes: 22 additions & 6 deletions gempak/ush/gefs_meta_nam_spag.sh_comb
Original file line number Diff line number Diff line change
Expand Up @@ -85,27 +85,43 @@ for level in ${levels}; do
for fn in $(echo $grids); do
rm -rf $fn ${fn}_6

INFILE=${COMIN}/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/${fn}/$COMPONENT/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/$COMPONENT/gempak/ge${fn}${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} $fn
fi

INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/${fn}/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/ge${fn}${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}_6
fi
done

fn=gefs_avg
rm -rf ${fn}
INFILE=${COMIN}/$COMPONENT/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMIN}/avg/$COMPONENT/products/gempak/gefs${sGrid}_${PDY}${cyc}f${fcsthr}
else
INFILE=${COMIN}/$COMPONENT/gempak/geavg${sGrid}_${PDY}${cyc}f${fcsthr}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi

fn=gefs_avg_6
rm -rf ${fn}
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
if [[ ${NewCOM:-"YES"} == "YES" ]]; then
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/avg/atmos/products/gempak/gefs${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
else
INFILE=${COMINs}/gefs.${PDY_6}/${cyc_6}/atmos/gempak/geavg${sGrid}_${PDY_6}${cyc_6}f${fcsthr_6}
fi
if [ -r ${INFILE} ]; then
ln -s ${INFILE} ${fn}
fi
Expand Down Expand Up @@ -420,9 +436,9 @@ if [[ $err != 0 ]]; then
fi

if [ $SENDCOM = "YES" ] ; then
mv ${metaname} ${COMOUT}/$COMPONENT/gempak/meta/$metaname
mv ${metaname} ${COMOUT}/${metaname}
if [ $SENDDBN = "YES" ] ; then
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/$COMPONENT/gempak/meta/$metaname
$DBNROOT/bin/dbn_alert MODEL ${DBN_ALERT_TYPE} $job ${COMOUT}/${metaname}
fi
fi

Expand Down
Loading

0 comments on commit 1b6cd5d

Please sign in to comment.