Skip to content

Commit

Permalink
Issue #94 - convert variables into hard-coded values per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
KateFriedman-NOAA committed Jul 10, 2020
1 parent 233f9f6 commit 866c4c4
Show file tree
Hide file tree
Showing 39 changed files with 99 additions and 134 deletions.
5 changes: 2 additions & 3 deletions jobs/JGDAS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,12 @@ export DBN_ALERT_TYPE=GDAS_GEMPAK
export NET=${NET:-gfs}
export RUN=${RUN:-gdas}
export model=${model:-gdas}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc/$COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/$COMPONENTatmos/gempak}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos/gempak}

if [ $SENDCOM = YES ] ; then
mkdir -m 775 -p $COMOUT
Expand Down
7 changes: 3 additions & 4 deletions jobs/JGDAS_GEMPAK_META_NCDC
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ cp $FIXgempak/datatype.tbl datatype.tbl
####################################
export NET=${NET:-gfs}
export RUN=${RUN:-gdas}
export COMPONENTatmos=${COMPONENTatmos:-atmos}
export MODEL=GDAS
export GRID_NAME=gdas
export fend=09
Expand All @@ -66,10 +65,10 @@ export DBN_ALERT_TYPE=GDAS_METAFILE
##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}/gempak}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos/gempak}
export COMINgdas=${COMINgdas:-$(compath.py ${NET}/${envir}/${RUN})}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}/gempak/meta}
export COMOUTncdc=${COMOUTncdc:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos/gempak/meta}
export COMOUTncdc=${COMOUTncdc:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos}

export COMINukmet=${COMINukmet:-$(compath.py nawips/prod/ukmet)}
export COMINecmwf=${COMINecmwf:-$(compath.py ecmwf/prod/ecmwf)}
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_AWIPS_20KM_1P0DEG
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ export FIXgfs=${FIXgfs:-$HOMEgfs/fix}
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export model=${model:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos}
export COMOUTwmo=${COMOUTwmo:-${COMOUT}/wmo}

if [ $SENDCOM = YES ] ; then
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_AWIPS_G2
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@ export UTILgfs=${UTILgfs:-$HOMEgfs/util}
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export model=${model:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos}
export COMOUTwmo=${COMOUTwmo:-${COMOUT}/wmo}

if [ $SENDCOM = YES ] ; then
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_CYCLONE_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ setpdy.sh
####################################
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Determine Job Output Name on System
Expand Down Expand Up @@ -91,10 +90,10 @@ export SCRIPTens_tracker=${SCRIPTens_tracker:-$HOMEens_tracker/scripts}
##############################################
# Define COM directories
##############################################
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos
export gfsdir=${COMIN}
export COMINgfs=${COMIN}
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos

export JYYYY=`echo ${PDY} | cut -c1-4`
export COMINgenvit=${COMINgenvit:-${COMOUT}/genesis_vital_${JYYYY}}
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_CYCLONE_TRACKER
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ setpdy.sh
####################################
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}


##############################################
Expand Down Expand Up @@ -93,12 +92,12 @@ export USHens_tracker=${USHens_tracker:-$HOMEens_tracker/ush}
##############################################
# Define COM and Data directories
##############################################
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos
export COMINgfs=${COMIN}
export gfsdir=${COMINgfs}
export COMINgdas=${COMIN}
export gdasdir=${COMINgdas}
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos
export COMINsyn=${COMINsyn:-$(compath.py arch/prod/syndat)}

if [ $RUN_ENVIR = "nco" ]; then
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_FBWIND
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ export UTILgfs=${UTILgfs:-$HOMEgfs/util}
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export model=${model:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos}
export COMOUTwmo=${COMOUTwmo:-${COMOUT}/wmo}

if [ $SENDCOM = YES ] ; then
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_FSU_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ setpdy.sh
####################################
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}


##############################################
Expand Down Expand Up @@ -94,13 +93,13 @@ export USHens_tracker=${USHens_tracker:-$HOMEens_tracker/ush}
##############################################
# Define COM and Data directories
##############################################
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos
export COMINgfs=${COMIN}
#export gfsdir=${COMINgfs}
export gfsdir=${ROTDIR}
export COMINgdas=${COMIN}
export gdasdir=${COMINgdas}
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos
export COMINsyn=${COMINsyn:-$(compath.py arch/prod/syndat)}

if [ $RUN_ENVIR = "nco" ]; then
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,12 @@ export DBN_ALERT_TYPE=${DBN_ALERT_TYPE:-GFS_GEMPAK}
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export model=${model:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}/gempak}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos/gempak}

if [ $SENDCOM = YES ] ; then
mkdir -m 775 -p $COMOUT
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_GEMPAK_META
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export fhinc=12
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export model=${model:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Set up model and cycle specific variables
Expand All @@ -72,8 +71,8 @@ export DBN_ALERT_TYPE=GFS_METAFILE
##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}/gempak}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}/gempak/meta}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos/gempak}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos/gempak/meta}
export COMINgempak=${COMINgempak:-${COMROOT}/${NET}/${envir}}

export COMINukmet=${COMINukmet:-$(compath.py nawips/prod/ukmet)}
Expand Down
7 changes: 3 additions & 4 deletions jobs/JGFS_GEMPAK_NCDC_UPAPGIF
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,13 @@ export fstart=00
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export model=${model:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}/gempak}
export COMINgfs=${COMINgfs:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos/gempak}
export COMINgfs=${COMINgfs:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos}
export COMOUTwmo=${COMOUTwmo:-${COMOUT}/wmo}

if [ $SENDCOM = YES ] ; then
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_PGRB2_SPEC_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@ export SRCgfs=${SRCgfs:-$HOMEgfs/scripts}
####################################
export NET=gfs
export RUN=gfs_goessim
export COMPONENTatmos=${COMPONENTatmos:-atmos}
export finc=3
export model=gfs
export EXT=""

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${NET}.${PDY})/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${NET}.${PDY}/${cyc}/${COMPONENTatmos}/gempak}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${NET}.${PDY})/${cyc}/atmos}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${NET}.${PDY}/${cyc}/atmos/gempak}

if [ $SENDCOM = YES ] ; then
mkdir -m 775 -p $COMOUT
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_PGRB2_SPEC_NPOESS
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ export FIXgfs=${FIXgfs:-$HOMEgfs/fix}
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export model=${model:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}}
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/atmos}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos}
export COMOUTwmo=${COMOUTwmo:-${COMOUT}/wmo}

if [ $SENDCOM = YES ] ; then
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGFS_POSTSND
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export cycle=t${cyc}z
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export model=${model:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}

###################################
# Set up the UTILITIES
Expand All @@ -54,8 +53,8 @@ setpdy.sh
##############################
# Define COM Directories
##############################
export COMIN=${COMIN:-$COMROOT/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}}
export COMOUT=${COMOUT:-$COMROOT/${NET}/${envir}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}}
export COMIN=${COMIN:-$COMROOT/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos}
export COMOUT=${COMOUT:-$COMROOT/${NET}/${envir}/${RUN}.${PDY}/${cyc}/atmos}
export pcom=${pcom:-${COMOUT}/wmo}
export COMAWP=${COMAWP:-${COMOUT}/gempak}
mkdir -p $COMOUT $pcom $COMAWP
Expand Down
7 changes: 3 additions & 4 deletions jobs/JGLOBAL_EMCSFC_SFC_PREP
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ GDATE=$($NDATE -06 $CDATE)
PDY_m6hrs=$(echo $GDATE | cut -c1-8)
cyc_m6hrs=$(echo $GDATE | cut -c9-10)
export cycle_m6hrs=t${cyc_m6hrs}z
export COMPONENTatmos=${COMPONENTatmos:-atmos}

export COMOUT=${COMOUT:-${COMROOT}/$NET/$envir/$RUN.$PDY/$cyc/${COMPONENTatmos}}
export COMOUT=${COMOUT:-${COMROOT}/$NET/$envir/$RUN.$PDY/$cyc/atmos}

export COMINgfs=${COMINgfs:-$(compath.py $NET/$envir/$RUN.$PDY)/$cyc/${COMPONENTatmos}}
export COMINgfs_m6hrs=${COMINgfs_m6hrs:-$(compath.py $NET/$envir/$RUN.$PDY_m6hrs)/$cyc_m6hrs/${COMPONENTatmos}}
export COMINgfs=${COMINgfs:-$(compath.py $NET/$envir/$RUN.$PDY)/$cyc/atmos}
export COMINgfs_m6hrs=${COMINgfs_m6hrs:-$(compath.py $NET/$envir/$RUN.$PDY_m6hrs)/$cyc_m6hrs/atmos}

export IMS_FILE=${COMINgfs}/${RUN}.${cycle}.imssnow96.grib2
export FIVE_MIN_ICE_FILE=${COMINgfs}/${RUN}.${cycle}.seaice.5min.grib2
Expand Down
6 changes: 2 additions & 4 deletions jobs/JGLOBAL_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export pgmerr=errfile
##############################################
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export COMPONENTatmos=${COMPONENTatmos:-"atmos"}
if [ $RUN_ENVIR = "nco" ]; then
export ROTDIR=${COMROOT:?}/$NET/$envir
export RSTDIR=${GESROOT:?}/$envir
Expand All @@ -74,10 +73,9 @@ fi
# Set wave variables
if [ ${DO_WAVE:-"NO"} = "YES" ]; then
# WAVE component directory
export COMPONENTwave=${COMPONENTwave:-"wave"}
export CDUMPwave=${CDUMPwave:-${CDUMP}wave}
export COMINwave=${COMINwave:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENTwave}}
export COMOUTwave=${COMOUTwave:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENTwave}}
export COMINwave=${COMINwave:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/wave}
export COMOUTwave=${COMOUTwave:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/wave}
fi

##############################################
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGLOBAL_TROPCY_QC_RELOC
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export pgmerr=errfile
##############################################
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export COMPONENTatmos=${COMPONENTatmos:-atmos}
if [ $RUN_ENVIR = "nco" ]; then
export ROTDIR=${COMROOT:?}/$NET/$envir
fi
Expand Down Expand Up @@ -89,8 +88,8 @@ export TANK_TROPCY=${TANK_TROPCY:-${DCOMROOT}/prod} # path to tropical cyclone
##############################################
# Define COM directories
##############################################
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENTatmos}
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos
if [ ! -d ${COMOUT} ]; then mkdir -p $COMOUT; fi
#export COMINgdas=${ROTDIR}/gdas.${PDY}/${cyc}
#export COMINgfs=${ROTDIR}/gfs.${PDY}/${cyc}
Expand Down
6 changes: 2 additions & 4 deletions jobs/JWAVE_INIT
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ status=$?
# PATH for working directory
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}
export COMPONENTwave=${COMPONENTwave:-wave}

export HOMEgfs=${HOMEgfs:-$NWROOT/${NET}.${gfs_ver}}

Expand Down Expand Up @@ -68,8 +66,8 @@ export EXECwave=${EXECwave:-$HOMEgfs/exec}
if [ $RUN_ENVIR = "nco" ]; then
export ROTDIR=${COMROOT:?}/$NET/$envir
fi
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENTwave}}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENTwave}}
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/wave}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/wave}
[[ ! -d $COMOUT ]] && mkdir -m 775 -p $COMOUT

if [ $SENDCOM = YES ]; then
Expand Down
6 changes: 2 additions & 4 deletions jobs/JWAVE_POST_SBS
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ status=$?
# PATH for working directory
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}
export COMPONENTwave=${COMPONENTwave:-wave}

export HOMEgefs=${HOMEgefs:-$NWROOT/$NET.${gefs_ver}}
export HOMEgfs=${HOMEgfs:-$NWROOT/$NET.${gfs_ver}}
Expand Down Expand Up @@ -69,8 +67,8 @@ export EXECwave=${EXECwave:-$HOMEgfs/exec}
if [ $RUN_ENVIR = "nco" ]; then
export ROTDIR=${COMROOT:?}/$NET/$envir
fi
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENTwave}}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENTwave}}
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/wave}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/wave}

export COMINice=${COMINice:-${COMROOTp2}/omb/prod}
export COMINwnd=${COMINwnd:-${COMROOT}/gfs/prod}
Expand Down
16 changes: 7 additions & 9 deletions jobs/JWAVE_PREP
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ status=$?
# PATH for working directory
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export COMPONENTatmos=${COMPONENTatmos:-atmos}
export COMPONENTwave=${COMPONENTwave:-wave}

export HOMEgfs=${HOMEgfs:-$NWROOT/gfs.${gfs_ver}}

Expand Down Expand Up @@ -73,13 +71,13 @@ export EXECwave=${EXECwave:-$HOMEgfs/exec}
if [ $RUN_ENVIR = "nco" ]; then
export ROTDIR=${COMROOT:?}/$NET/$envir
fi
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENTwave}}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${COMPONENTwave}}
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/wave}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/wave}
[[ ! -d $COMOUT ]] && mkdir -m 775 -p $COMOUT

if [ $RUN_ENVIR = "nco" ]; then
export COMIN_WAV_ICE=${COMIN_WAV_ICE:-$(compath.py gfs/prod)}/${CDUMP}.${PDY}/${cyc}/${COMPONENTatmos}
export COMIN_WAV_WND=${COMIN_WAV_WND:-$(compath.py gfs/prod)}/${CDUMP}.${PDY}/${cyc}/${COMPONENTatmos}
export COMIN_WAV_ICE=${COMIN_WAV_ICE:-$(compath.py gfs/prod)}/${CDUMP}.${PDY}/${cyc}/atmos
export COMIN_WAV_WND=${COMIN_WAV_WND:-$(compath.py gfs/prod)}/${CDUMP}.${PDY}/${cyc}/atmos
export COMIN_WAV_CUR=${COMIN_WAV_CUR:-$(compath.py ${WAVECUR_DID}/prod)}/${WAVECUR_DID}.${RPDY}
if [ ! -d $COMIN_WAV_CUR ]; then
export RPDY=`$NDATE -24 ${PDY}00 | cut -c1-8`
Expand All @@ -90,10 +88,10 @@ else
if [ ! -L $ROTDIR/${WAVECUR_DID}.${RPDY} ]; then # Check if symlink already exists in ROTDIR
$NLN $DMPDIR/${WAVECUR_DID}.${RPDY} $ROTDIR/${WAVECUR_DID}.${RPDY}
fi
if [ ! -L $ROTDIR/${CDUMP}.${PDY}/${cyc}/${COMPONENTatmos}/${WAVICEFILE} ]; then # Check if symlink already exists in ROTDIR
$NLN $DMPDIR/$CDUMP.${PDY}/$cyc/${WAVICEFILE} $ROTDIR/$CDUMP.${PDY}/$cyc/${COMPONENTatmos}/${WAVICEFILE}
if [ ! -L $ROTDIR/${CDUMP}.${PDY}/${cyc}/atmos/${WAVICEFILE} ]; then # Check if symlink already exists in ROTDIR
$NLN $DMPDIR/$CDUMP.${PDY}/$cyc/${WAVICEFILE} $ROTDIR/$CDUMP.${PDY}/$cyc/atmos/${WAVICEFILE}
fi
export COMIN_OBS=${COMIN_OBS:-$ROTDIR/$RUN.$PDY/$cyc/${COMPONENTatmos}}
export COMIN_OBS=${COMIN_OBS:-$ROTDIR/$RUN.$PDY/$cyc/atmos}
export COMIN_WAV_ICE=${COMIN_OBS}
export COMIN_WAV_WND=${COMIN_OBS}
export COMIN_WAV_CUR=${ROTDIR}/${WAVECUR_DID}.${RPDY}
Expand Down
Loading

0 comments on commit 866c4c4

Please sign in to comment.