Skip to content

Commit

Permalink
remove env from all JJobs
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul committed Jul 23, 2022
1 parent dae8249 commit ef436d9
Show file tree
Hide file tree
Showing 44 changed files with 35 additions and 105 deletions.
3 changes: 1 addition & 2 deletions jobs/JGDAS_ATMOS_ANALYSIS_DIAG
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export pgmerr=errfile
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export COMPONENT=${COMPONENT:-atmos}
export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}
export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}


##############################################
Expand Down Expand Up @@ -112,7 +112,6 @@ fi

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_ATMOS_CHGRES_FORENKF
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export COMIN_GES_ENS="$ROTDIR/enkfgdas.$gPDY/$gcyc/$COMPONENT"

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
4 changes: 1 addition & 3 deletions jobs/JGDAS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ fi

export pgmout=OUTPUT.$$

env

if [ -f $DATA/poescrip ]; then
if [ -f $DATA/poescript ]; then
rm $DATA/poescript
fi

Expand Down
2 changes: 0 additions & 2 deletions jobs/JGDAS_ATMOS_GEMPAK_META_NCDC
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ fi

export pgmout=OUTPUT.$$

env

########################################################
# Execute the script.
$USHgempak/gdas_meta_na.sh
Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_EFSOI
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ mkdir -p $OSENSE_SAVE_DIR

###############################################################
# Run relevant exglobal script
env
msg="HAS BEGUN on `hostname`"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
3 changes: 1 addition & 2 deletions jobs/JGDAS_EFSOI_ECEN
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,13 @@ fi

# COMIN, COMIN_ENS and COMIN_GES_ENS are used in script
export COMIN="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
export COMIN_ENS="$ROTDIR/efsoi$CDUMP_ENKF.$PDY/$cyc/$COMPONENT"
export COMIN_ENS="$ROTDIR/efsoi$CDUMP_ENKF.$PDY/$cyc/$COMPONENT"
export COMOUT_ENS="$ROTDIR/efsoi$CDUMP.$PDY/$cyc/$COMPONENT"
export COMIN_GES_ENS="$ROTDIR/enkf$CDUMP.$gPDY/$gcyc/$COMPONENT"


###############################################################
# Run relevant script
env
msg="HAS BEGUN on `hostname`"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
3 changes: 1 addition & 2 deletions jobs/JGDAS_EFSOI_FCST
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if [ $RUN_ENVIR = "nco" ]; then
fi

# tells the forecast script to use efsoi ensemble
export EFSOI_TASK="YES"
export EFSOI_TASK="YES"

##############################################
# Begin JOB SPECIFIC work
Expand Down Expand Up @@ -93,7 +93,6 @@ export ENSBEG=$((ENSEND - NMEM_EFCSGRP + 1))

###############################################################
# Run relevant script
env
msg="HAS BEGUN on `hostname`"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_EFSOI_POST
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export LEVS=$((LEVS-1))

###############################################################
# Run relevant script
env
msg="HAS BEGUN on `hostname`"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_EFSOI_SFC
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export COMIN_GES_ENS="$ROTDIR/enkf$CDUMP.$gPDY/$gcyc/$COMPONENT"

###############################################################
# Run relevant script
env
msg="HAS BEGUN on `hostname`"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_EFSOI_UPDATE
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ mkdir -p $COMOUT_ANL_ENSFSOI

###############################################################
# Run relevant exglobal script
env
msg="HAS BEGUN on `hostname`"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_ENKF_DIAG
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ done

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_ENKF_ECEN
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export COMIN_GES_ENS="$ROTDIR/enkf$CDUMP.$gPDY/$gcyc/$COMPONENT"

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_ENKF_FCST
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export ENSBEG=$((ENSEND - NMEM_EFCSGRP + 1))

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_ENKF_POST
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export LEVS=$((LEVS-1))

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_ENKF_SELECT_OBS
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ done

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
1 change: 0 additions & 1 deletion jobs/JGDAS_ENKF_SFC
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export COMIN_GES_ENS="$ROTDIR/enkf$CDUMP.$gPDY/$gcyc/$COMPONENT"

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_AWIPS_20KM_1P0DEG
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ fi

export pgmout=OUTPUT.$$

env

########################################################
# Execute the script.
# Forecast hours from F00 - F84 at 3-hour interval
Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_AWIPS_G2
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ fi

export pgmout=OUTPUT.$$

env

########################################################
# Execute the script.
#########################################################
Expand Down
1 change: 0 additions & 1 deletion jobs/JGFS_ATMOS_CYCLONE_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ mkdir -m 775 -p $COMOUTgenvit
##############################################
# Run relevant script
##############################################
env
msg="HAS BEGUN on $(hostname)"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
1 change: 0 additions & 1 deletion jobs/JGFS_ATMOS_CYCLONE_TRACKER
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ fi
##############################################
# Run relevant script
##############################################
env
msg="HAS BEGUN on $(hostname)"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_FBWIND
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ fi

export pgmout=OUTPUT.$$

env

########################################################
# Execute the script.
$HOMEgfs/scripts/exgfs_atmos_fbwind.sh
Expand Down
3 changes: 1 addition & 2 deletions jobs/JGFS_ATMOS_FSU_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if [ $RUN_ENVIR = "nco" ]; then
export COMOUTatcf=${COMROOTp1:?}/nhc/${envir}/atcf
mkdir -m 775 -p $COMOUThur $COMOUTatcf
else
# export COMOUThur=$COMOUT
# export COMOUThur=$COMOUT
# export COMOUTatcf=$COMOUT
export COMOUThur=$DATA
export COMOUTatcf=$DATA
Expand All @@ -119,7 +119,6 @@ fi
##############################################
# Run relevant script
##############################################
env
msg="HAS BEGUN on $(hostname)"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ fi

export pgmout=OUTPUT.$$

env

rm -f poescript

#################################################################
Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_GEMPAK_META
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ fi

export pgmout=OUTPUT.$$

env

########################################################
# Execute the script.
$SRCgfs/exgfs_atmos_gempak_meta.sh
Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_GEMPAK_NCDC_UPAPGIF
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ fi

export pgmout=OUTPUT.$$

env

msg="Begin job for $job"
postmsg "$jlogfile" "$msg"

Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_GEMPAK_PGRB2_SPEC
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ if [ $SENDCOM = YES ] ; then
mkdir -m 775 -p $COMOUT
fi

env

export DATA_HOLD=$DATA

msg="Begin job for $job"
Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_PGRB2_SPEC_NPOESS
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ fi

export pgmout=OUTPUT.$$

env

####################################
# Specify Forecast Hour Range
####################################
Expand Down
2 changes: 0 additions & 2 deletions jobs/JGFS_ATMOS_POSTSND
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}
[[ ! -d $pcom ]] && mkdir -p $pcom
[[ ! -d $COMAWP ]] && mkdir -p $COMAWP

env

########################################################
# Execute the script.
$SCRbufrsnd/exgfs_atmos_postsnd.sh
Expand Down
5 changes: 2 additions & 3 deletions jobs/JGLOBAL_ATMOS_ANALYSIS
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export pgmerr=errfile
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export COMPONENT=${COMPONENT:-atmos}
export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}
export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}


##############################################
Expand Down Expand Up @@ -103,7 +103,7 @@ fi

# Get LEVS
if [ ${GSUFFIX} = ".nc" ]; then
export LEVS=$($NCLEN $ATMGES pfull)
export LEVS=$($NCLEN $ATMGES pfull)
status=$?
else
export LEVS=$($NEMSIOGET $ATMGES dimz | awk '{print $2}')
Expand Down Expand Up @@ -140,7 +140,6 @@ fi

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
5 changes: 2 additions & 3 deletions jobs/JGLOBAL_ATMOS_ANALYSIS_CALC
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export pgmerr=errfile
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export COMPONENT=${COMPONENT:-atmos}
export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}
export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}


##############################################
Expand Down Expand Up @@ -103,7 +103,7 @@ fi

# Get LEVS
if [ ${GSUFFIX} = ".nc" ]; then
export LEVS=$($NCLEN $ATMGES pfull)
export LEVS=$($NCLEN $ATMGES pfull)
status=$?
else
export LEVS=$($NEMSIOGET $ATMGES dimz | awk '{print $2}')
Expand All @@ -127,7 +127,6 @@ export DOGAUSFCANL=${DOGAUSFCANL:-"YES"}

###############################################################
# Run relevant script
env
echo "HAS BEGUN on $(hostname)"
$LOGSCRIPT

Expand Down
4 changes: 1 addition & 3 deletions jobs/JGLOBAL_ATMOS_EMCSFC_SFC_PREP
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export COMPONENT=${COMPONENT:-atmos}
export COMOUT=${COMOUT:-${COMROOT}/$NET/$envir/$RUN.$PDY/$cyc/$COMPONENT}

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

export IMS_FILE=${COMINgfs}/${RUN}.${cycle}.imssnow96.grib2
export FIVE_MIN_ICE_FILE=${COMINgfs}/${RUN}.${cycle}.seaice.5min.grib2
Expand All @@ -72,8 +72,6 @@ export BLENDED_ICE_FILE_m6hrs=${BLENDED_ICE_FILE_m6hrs:-${COMINgfs_m6hrs}/${RUN}
###############################################################
# Run relevant script
###############################################################

env
msg="HAS BEGUN on $(hostname)"
postmsg "$jlogfile" "$msg"

Expand Down
1 change: 0 additions & 1 deletion jobs/JGLOBAL_ATMOS_NCEPPOST
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export SLEEP_INT=5

###############################################################
# Run relevant exglobal script
env
msg="HAS BEGUN on $(hostname)"
postmsg "$msg"
$LOGSCRIPT
Expand Down
6 changes: 3 additions & 3 deletions jobs/JGLOBAL_ATMOS_POST_MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ set -xue
# #### 07/30/1999 ###################
# SET SHELL PROCESSING VARIABLES
# ###################################
export PS4='$SECONDS + '
export PS4='$SECONDS + '
date

####################################
Expand All @@ -43,13 +43,13 @@ export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export COMPONENT=${COMPONENT:-atmos}

####################################
####################################
# obtain unique process id (pid) and make temp directories
####################################
export pid=${pid:-$$}
export DATA=${DATA:-${DATAROOT}/${jobid:?}}
mkdir $DATA
cd $DATA
cd $DATA

####################################
# Determine Job Output Name on System
Expand Down
3 changes: 1 addition & 2 deletions jobs/JGLOBAL_ATMOS_TROPCY_QC_RELOC
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export tmmark=tm00
if [ $RUN_ENVIR = "nco" ]; then
export ARCHSYND=$COMROOTp3/gfs/${envir}/syndat # this location is unique, do not change
else
export ARCHSYND=${ROTDIR}/syndat
export ARCHSYND=${ROTDIR}/syndat
fi
if [ ! -d ${ARCHSYND} ]; then mkdir -p $ARCHSYND; fi

Expand Down Expand Up @@ -104,7 +104,6 @@ export BKGFREQ=1 # for hourly relocation
##############################################
# Run relevant script
##############################################
env
msg="HAS BEGUN on $(hostname)"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
1 change: 0 additions & 1 deletion jobs/JGLOBAL_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ fi

###############################################################
# Run relevant exglobal script
env
msg="HAS BEGUN on $(hostname)"
postmsg "$jlogfile" "$msg"
$LOGSCRIPT
Expand Down
Loading

0 comments on commit ef436d9

Please sign in to comment.