Skip to content

Commit

Permalink
Updated some scripts for COM directories
Browse files Browse the repository at this point in the history
Updates in some JJOB and ex-scripts remove use of ROTDIR
and replace with appropriate COM_* directories.

Refs #2061
  • Loading branch information
KateFriedman-NOAA committed Jan 10, 2024
1 parent 9dd1193 commit f6bb1d8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 32 deletions.
6 changes: 5 additions & 1 deletion jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_BMAT
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "ocnanalrun" -c "base ocnanal ocnanalr
# Begin JOB SPECIFIC work
##############################################

export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/ocean}
YMD=${PDY} HH=${cyc} generate_com -rx COM_OCEAN_ANALYSIS

mkdir -p "${COM_OCEAN_ANALYSIS}"

export COMOUT=${COM_OCEAN_ANALYSIS}

###############################################################
# Run relevant script
Expand Down
6 changes: 5 additions & 1 deletion jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_BMAT_VRFY
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "ocnanalrun" -c "base ocnanal ocnanalr
# Begin JOB SPECIFIC work
##############################################

export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/ocean}
YMD=${PDY} HH=${cyc} generate_com -rx COM_OCEAN_ANALYSIS

mkdir -p "${COM_OCEAN_ANALYSIS}"

export COMOUT=${COM_OCEAN_ANALYSIS}

###############################################################
# Run relevant script
Expand Down
31 changes: 12 additions & 19 deletions jobs/JGFS_ATMOS_FSU_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,18 @@ export PYTHONPATH=${USHens_tracker}/FSUgenesisPY:${PYTHONPATH}
##############################################
# Define COM and Data directories
##############################################
export COMIN=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENT}
export COMINgfs=${COMIN}
#export gfsdir=${COMINgfs}
export gfsdir=${ROTDIR}
export COMINgdas=${COMIN}
export gdasdir=${COMINgdas}
export COMOUT=${ROTDIR}/${RUN}.${PDY}/${cyc}/${COMPONENT}
export COMINsyn=${COMINsyn:-$(compath.py ${envir}/com/gfs/${gfs_ver})/syndat}

if [ ${RUN_ENVIR} = "nco" ]; then
export COMOUThur=${COMROOTp1}/hur/${envir}/global
export COMOUTatcf=${COMROOTp1}/nhc/${envir}/atcf
mkdir -m 775 -p ${COMOUThur} ${COMOUTatcf}
else
# export COMOUThur=$COMOUT
# export COMOUTatcf=$COMOUT
export COMOUThur=${DATA}
export COMOUTatcf=${DATA}
fi
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GENESIS
YMD=${PDY} HH=${cyc} GRID="0p25" generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_GRID_TMPL

# The following variables are used by the tracker scripts which are outside
# of global-workflow and therefore can't be standardized at this time
export COMIN=${COM_ATMOS_GRIB_0p25}
export gfsdir=${COM_ATMOS_GRIB_0p25}
export COMINgfs=${COM_ATMOS_GRIB_0p25}

export COMOUT=${COM_ATMOS_GENESIS}

export COMINsyn=${COMINsyn:-$(compath.py "${envir}/com/gfs/${gfs_ver}")/syndat}

##############################################
# Run relevant script
Expand Down
12 changes: 2 additions & 10 deletions jobs/JGLOBAL_ATMOS_POST_MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "post" -c "base post"
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}


####################################
# Specify version numbers
####################################
export gfs_ver=${gfs_ver:-v15.0.0}

####################################
# Specify Execution Areas
####################################
Expand All @@ -32,10 +26,8 @@ export USHgfs=${HOMEgfs:-${HOMEgfs}/ush}
###########################
export EXT_FCST=NO

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

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_HISTORY
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GRIB

########################################################
# Execute the script.
Expand Down
2 changes: 1 addition & 1 deletion scripts/exglobal_atmos_pmgr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ icnt=1
while [ $icnt -lt 1000 ]; do
for fhr in $postjobs; do
fhr3=$(printf "%03d" $fhr)
if [ -s ${COMIN}/${RUN}.${cycle}.logf${fhr}.txt -o -s ${COMIN}/${RUN}.${cycle}.logf${fhr3}.txt ]; then
if [ -s ${COM_ATMOS_HISTORY}/${RUN}.${cycle}.atm.logf${fhr3}.txt ]; then
if [ $fhr -eq 0 ]; then
#### ecflow_client --event release_${RUN}_postanl
ecflow_client --event release_postanl
Expand Down

0 comments on commit f6bb1d8

Please sign in to comment.