Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize COM and refactor to use templates #1421

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
034af64
Make initial config changes for COM refactor
WalterKolczynski-NOAA Jan 31, 2023
95cba80
Update gdas forecast jobs for COM refactor
WalterKolczynski-NOAA Jan 31, 2023
7741b2f
Update post jobs for COM refactor
WalterKolczynski-NOAA Jan 31, 2023
4da20b7
Update TC tracker for COM refactor
WalterKolczynski-NOAA Jan 31, 2023
624c57b
Update ensemble chgres for COM refactor
WalterKolczynski-NOAA Jan 31, 2023
141421c
Update prep for COM refactor
WalterKolczynski-NOAA Feb 1, 2023
a073cf0
Update config.com to use YMD and HH
WalterKolczynski-NOAA Feb 22, 2023
087bacf
Update PS4 to handle unknown script names
WalterKolczynski-NOAA Feb 22, 2023
c3e320e
Update rocoto data dependencies to use templates
WalterKolczynski-NOAA Feb 22, 2023
6bb611a
Move generate_com to preamble and improve
WalterKolczynski-NOAA Feb 27, 2023
9eddc1b
Fix path errors in prep
WalterKolczynski-NOAA Feb 27, 2023
98f406e
Update analysis and eobs jobs for COM refactor
WalterKolczynski-NOAA Feb 27, 2023
7e702ac
Update analysis to use cleaner generate_com functionality
WalterKolczynski-NOAA Mar 1, 2023
7e80a4b
Update surface analysis for COM refactor
WalterKolczynski-NOAA Mar 1, 2023
be4432c
Update prep to use cleaner generate_com functionality
WalterKolczynski-NOAA Mar 1, 2023
342b25a
Update anl calc for COM refactor
WalterKolczynski-NOAA Mar 1, 2023
cc52a6d
Update workflow generation for dump template change
WalterKolczynski-NOAA Mar 1, 2023
6a004b2
Fix incorrect CDUMP and missing tempalte in select obs
WalterKolczynski-NOAA Mar 1, 2023
7be13a2
Update anl diag for COM refactor
WalterKolczynski-NOAA Mar 1, 2023
f25d63b
Exit generate_com with error if template is not defined
WalterKolczynski-NOAA Mar 1, 2023
077d4fa
Fix incorrect indent for line continuation in workflow_tasks.py
WalterKolczynski-NOAA Mar 1, 2023
06a7120
Update ensemble update for COM refactor
WalterKolczynski-NOAA Mar 1, 2023
1e20aa9
Update anl calc python scripts for COM refactor
WalterKolczynski-NOAA Mar 1, 2023
6886b59
Use correct $RUN for ens update
WalterKolczynski-NOAA Mar 1, 2023
ec65de5
Update ens recenter job for COM refactor
WalterKolczynski-NOAA Mar 1, 2023
d182ad4
Temporarily change external package target
WalterKolczynski-NOAA Mar 9, 2023
0d29a89
Update ensemble sfc anl for post refactor
WalterKolczynski-NOAA Mar 9, 2023
ec83db4
Fix errors in forecast
WalterKolczynski-NOAA Mar 9, 2023
a3ccea2
Fix link to analysis file in post
WalterKolczynski-NOAA Mar 9, 2023
6cce647
Update post to use extended generate_com functionality
WalterKolczynski-NOAA Mar 9, 2023
f566f93
Update cyclone tracker for changes in COM templates
WalterKolczynski-NOAA Mar 9, 2023
d90cac6
Remove unneeded COMIN/COMOUT from sfcanl
WalterKolczynski-NOAA Mar 9, 2023
1a04621
Add GOES and WAFS com variables to post job
WalterKolczynski-NOAA Mar 10, 2023
6d714b6
Update forecast post jobs for COM refactor
WalterKolczynski-NOAA Mar 13, 2023
daa423b
Update verify jobs except fit2obs for COM refactor
WalterKolczynski-NOAA Mar 13, 2023
3b06036
Roll back gPDY/gcyc changes
WalterKolczynski-NOAA Mar 13, 2023
804d01f
Temporarily turn off fit2obs
WalterKolczynski-NOAA Mar 13, 2023
7423a08
Update archive jobs for COM refactor
WalterKolczynski-NOAA Mar 13, 2023
3b95629
Cleanup some of the COM refactor changes
WalterKolczynski-NOAA Mar 13, 2023
ee8a9fe
Clean up some more of the COM refactor changes
WalterKolczynski-NOAA Mar 13, 2023
56cc418
Clean up COM refactor further
WalterKolczynski-NOAA Mar 14, 2023
2689fe4
Remove extraneous fi in archive
WalterKolczynski-NOAA Mar 14, 2023
12585e7
Update coupled_ic job for COM refactor
WalterKolczynski-NOAA Mar 14, 2023
1662600
Update wave init job for COM refactor
WalterKolczynski-NOAA Mar 14, 2023
ac29a53
Correct forecast-only forecast dependency
WalterKolczynski-NOAA Mar 14, 2023
a9cd680
Update coupled forecast for COM refactor
WalterKolczynski-NOAA Mar 15, 2023
f5aaa64
Update ocean post for COM refactor
WalterKolczynski-NOAA Mar 15, 2023
dac8619
Update gridded wave post for COM refactor
WalterKolczynski-NOAA Mar 15, 2023
f05ad80
Remove unneeded definition in post pre-job
WalterKolczynski-NOAA Mar 15, 2023
82f5e6b
Update wave station post job for COM refactor
WalterKolczynski-NOAA Mar 15, 2023
fd8f78b
Complete update to arch jobs COM refactor
WalterKolczynski-NOAA Mar 15, 2023
2ee652b
Update sound job for COM refactor
WalterKolczynski-NOAA Mar 16, 2023
d9a2b98
Additional updates for archive jobs for COM refactor
WalterKolczynski-NOAA Mar 16, 2023
cb228f5
Fix issues in secondary products following COM reorg
WalterKolczynski-NOAA Mar 16, 2023
10fecb9
Correct eupd/esfc using wrong guess for enkfgfs
WalterKolczynski-NOAA Mar 16, 2023
ec16383
Correct WAFS dependency
WalterKolczynski-NOAA Mar 16, 2023
53765ab
Update gempak jobs for COM refactor
WalterKolczynski-NOAA Mar 21, 2023
7fb8a4d
Update NPOESS job for COM refactor
WalterKolczynski-NOAA Mar 21, 2023
1d988be
Remove memdir from COM_TOP template
WalterKolczynski-NOAA Mar 21, 2023
c6b2b1b
Update AWIPS for COM refactor
WalterKolczynski-NOAA Mar 21, 2023
10e2117
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Mar 21, 2023
e092383
Remove extraneous trailing whitespace in post
WalterKolczynski-NOAA Mar 21, 2023
5e4ce9f
Use correct location for tcvitals in eobs
WalterKolczynski-NOAA Mar 22, 2023
e0b8737
Fix cleanup routines in archive jobs
WalterKolczynski-NOAA Mar 22, 2023
13a10dc
Remove extra + in forecast NDATE expression
WalterKolczynski-NOAA Mar 22, 2023
24b0c80
Update exp setup to stage ICs in new COM structure
WalterKolczynski-NOAA Mar 23, 2023
fa27d49
Remove experimental dumps from config.anal
WalterKolczynski-NOAA Mar 23, 2023
fbafb30
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Mar 23, 2023
0090ea5
Update cyclone genesis job for COM refactor
WalterKolczynski-NOAA Mar 23, 2023
439c41b
Remove unneeded options from generate_com
WalterKolczynski-NOAA Mar 23, 2023
f64f61c
Remove unwanted addition to esfc
WalterKolczynski-NOAA Mar 23, 2023
ca9732c
Undo change to FSU genesis until it is properly updated
WalterKolczynski-NOAA Mar 23, 2023
25b194a
Fix cyclone tracker jobs using COM templates
WalterKolczynski-NOAA Mar 24, 2023
5e89f75
Add output directory creation back into NPOESS job
WalterKolczynski-NOAA Mar 24, 2023
e2b3be3
Update documentation for COM templates and generate_com()
WalterKolczynski-NOAA Mar 24, 2023
068ea96
Fix error in archive restarts introduced during COM refactor
WalterKolczynski-NOAA Mar 24, 2023
bbf91ee
Restore memchar as variable name to analysis
WalterKolczynski-NOAA Mar 24, 2023
db04d66
Restore some lost comments to postdet
WalterKolczynski-NOAA Mar 24, 2023
0584d44
Add additional wave COM templates
WalterKolczynski-NOAA Mar 28, 2023
a551b71
Use obsproc location for NCO ops
WalterKolczynski-NOAA Mar 28, 2023
f6a82a9
Make all COM templates read-only
WalterKolczynski-NOAA Mar 28, 2023
36fe320
Update wave bndpt job for COM refactor
WalterKolczynski-NOAA Apr 4, 2023
37f1991
Move wave fcst log files from prep to history
WalterKolczynski-NOAA Apr 4, 2023
efab891
Update wave bndpnt bulletins for COM refactor
WalterKolczynski-NOAA Apr 4, 2023
93fbd60
Fix using date instead of PDY in wave interp print
WalterKolczynski-NOAA Apr 4, 2023
83f2501
Update wave gempak job for COM refactor
WalterKolczynski-NOAA Apr 4, 2023
1f7222d
Provisionally update wave AWIPS jobs for COM refactor
WalterKolczynski-NOAA Apr 4, 2023
5ee02b5
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 4, 2023
7bd94ae
Make updates to template definitions
WalterKolczynski-NOAA Apr 4, 2023
34bb2c9
Update wave prep job for COM refactor
WalterKolczynski-NOAA Apr 4, 2023
94ddaa7
Move wave AWIPS bulletin parm file
WalterKolczynski-NOAA Apr 10, 2023
560d090
Define COMOUT for cyclone genesis
WalterKolczynski-NOAA Apr 10, 2023
a04cb02
Use longer of $ILPOST and $finc for short-range coarse res gempak
WalterKolczynski-NOAA Apr 10, 2023
5155064
Move remaining wave parm files to new parm dir
WalterKolczynski-NOAA Apr 10, 2023
78ae517
Make shellcheck fixes for j-jobs
WalterKolczynski-NOAA Apr 11, 2023
c01f228
Make shellcheck fixes to config files
WalterKolczynski-NOAA Apr 11, 2023
8859ff5
Fix array loop in earc
WalterKolczynski-NOAA Apr 11, 2023
d4097f3
Make shellcheck fixes to exscripts
WalterKolczynski-NOAA Apr 11, 2023
eb70cb2
Fix bracket syntax error in tropcy relocate
WalterKolczynski-NOAA Apr 11, 2023
7fa277f
Make shellcheck fixes for ush script
WalterKolczynski-NOAA Apr 11, 2023
28d442a
Add empty line back to .shellcheckrc
WalterKolczynski-NOAA Apr 11, 2023
b6c7d83
Make additional shellcheck fixes for prep
WalterKolczynski-NOAA Apr 11, 2023
d5f8a04
Improve comments about disabling spelling error warning
WalterKolczynski-NOAA Apr 11, 2023
0a4e2e1
Update prep to use jjob header and define CDUMP
WalterKolczynski-NOAA Apr 11, 2023
d35156e
Fix shellcheck ignore in earc
WalterKolczynski-NOAA Apr 11, 2023
ae3c84d
Re-delete lines in enkffcst from incorrect pull
WalterKolczynski-NOAA Apr 11, 2023
2df57aa
Undo unnecessary change to memchar
WalterKolczynski-NOAA Apr 11, 2023
3dfa1dc
Fix DBN alert path in enkf fcst
WalterKolczynski-NOAA Apr 11, 2023
62488e1
Undo change of memchar variable name in enkf post
WalterKolczynski-NOAA Apr 11, 2023
2392eb9
Fix detection of source COM structure when staging ICs
WalterKolczynski-NOAA Apr 11, 2023
94fba2e
Clean up some miscellaneous comments
WalterKolczynski-NOAA Apr 11, 2023
e695ac0
Move input.nml to history directory
WalterKolczynski-NOAA Apr 13, 2023
5972917
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 13, 2023
460755d
Fix temporary external package path for Hera
WalterKolczynski-NOAA Apr 13, 2023
a3a4f96
Restore inadvertently deleted gPDY def in sfcanl
WalterKolczynski-NOAA Apr 14, 2023
578a5d6
Fix misplaced quotation in tropcy
WalterKolczynski-NOAA Apr 14, 2023
afc04f9
Remove erroneous space in oro link
WalterKolczynski-NOAA Apr 15, 2023
cf5cb22
Use correct GDUMP for previous restart in sfc enkf
WalterKolczynski-NOAA Apr 15, 2023
7488422
Remove prepobs path variables from jobs/rocoto/prep.sh
KateFriedman-NOAA Apr 17, 2023
c1bbb84
Temporarily use feature-GFSv17_com_reorg install of TC_tracker
KateFriedman-NOAA Apr 17, 2023
8dfde83
Set prepobs module to interim feature-GFSv17_com_reorg copy
KateFriedman-NOAA Apr 17, 2023
d552981
Set prepobs module to interim feature-GFSv17_com_reorg copy for Jet
KateFriedman-NOAA Apr 17, 2023
069fb39
Revert Hera/Orion BASE_GITs back to global group locations
KateFriedman-NOAA Apr 17, 2023
bdd5089
Set prepobs and TC_tracker installs to interim branch installs
WalterKolczynski-NOAA Apr 17, 2023
7883bdb
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 18, 2023
33cc44e
Move ESMF summary to atmos history dir
WalterKolczynski-NOAA Apr 18, 2023
2b6cef2
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 18, 2023
027f7fe
Delete no longer needed buoy file
WalterKolczynski-NOAA Apr 18, 2023
0238a14
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 18, 2023
a04ebc3
Fix some shellcheck complaints in vrfy
WalterKolczynski-NOAA Apr 18, 2023
d8230b7
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 20, 2023
df77536
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 20, 2023
5c70fba
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 23, 2023
f8c2597
Add grid directory level for atmos gempak
WalterKolczynski-NOAA Apr 23, 2023
50e8509
Change grib dirnames to grib2
WalterKolczynski-NOAA Apr 24, 2023
bb22945
Merge branch 'develop' into feature/com_reorg
WalterKolczynski-NOAA Apr 24, 2023
eeb8d2a
Fix typo from last merge conflict
WalterKolczynski-NOAA Apr 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ disable=SC1090

# Disable non-existent binary
disable=SC1091

# Disable -p -m only applies to deepest directory
disable=SC2174
3 changes: 2 additions & 1 deletion env/ORION.env
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ if [[ "${step}" = "prep" ]] || [[ "${step}" = "prepbufr" ]]; then
export sys_tp="ORION"
export launcher_PREP="srun"

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]]|| [[ "${step}" = "wavepostpnt" ]]; then
elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || \
[[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostpnt" ]] || [[ "${step}" == "wavepostbndpntbll" ]]; then

export CFP_MP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
Expand Down
51 changes: 12 additions & 39 deletions jobs/JGDAS_ATMOS_ANALYSIS_DIAG
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,29 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "anal" -c "base anal analdiag"
##############################################
# Set variables used in the script
##############################################
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export CDUMP="${RUN/enkf}"
export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}


##############################################
# Begin JOB SPECIFIC work
##############################################

GDATE=$(${NDATE} -${assim_freq} ${CDATE})
gPDY=$(echo ${GDATE} | cut -c1-8)
gcyc=$(echo ${GDATE} | cut -c9-10)
GDUMP=${GDUMP:-"gdas"}
# Ignore possible spelling error (nothing is misspelled)
# shellcheck disable=SC2153
GDATE=$(${NDATE} -${assim_freq} ${PDY}${cyc})
# shellcheck disable=
export gPDY=${GDATE:0:8}
export gcyc=${GDATE:8:2}
export GDUMP="gdas"
export GDUMP_ENS="enkf${GDUMP}"

export OPREFIX="${CDUMP}.t${cyc}z."
export GPREFIX="${GDUMP}.t${gcyc}z."
export APREFIX="${CDUMP}.t${cyc}z."
export GPREFIX_ENS="enkf${GDUMP}.t${gcyc}z."


if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then
export COMOUT=${COMOUT:-${ROTDIR}/${RUN}.${PDY}/${cyc}/atmos}
export COMIN_OBS=${COMIN_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${RUN}.${PDY}/${cyc}/atmos}
export COMIN_GES_OBS=${COMIN_GES_OBS:-$(compath.py ${envir}/obsproc/${obsproc_ver})/${GDUMP}.${gPDY}/${gcyc}/atmos}
else
export COMOUT="${ROTDIR}/${CDUMP}.${PDY}/${cyc}/atmos"
export COMIN_OBS="${COMIN_OBS:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/obs}"
export COMIN_GES_OBS="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs"
fi
mkdir -m 775 -p ${COMOUT}
# COMIN_GES and COMIN_GES_ENS are used in script
export COMIN_GES="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/atmos"
export COMIN_GES_ENS="${ROTDIR}/enkfgdas.${gPDY}/${gcyc}"


export ATMGES="${COMIN_GES}/${GPREFIX}atmf006.nc"
if [ ! -f ${ATMGES} ]; then
echo "FATAL ERROR: FILE MISSING: ATMGES = ${ATMGES}"
exit 1
fi


if [ ${DOHYBVAR} = "YES" ]; then
export ATMGES_ENSMEAN="${COMIN_GES_ENS}/${GPREFIX_ENS}atmf006.ensmean.nc"
if [ ! -f ${ATMGES_ENSMEAN} ]; then
echo "FATAL ERROR: FILE MISSING: ATMGES_ENSMEAN = ${ATMGES_ENSMEAN}"
exit 2
fi
fi
export APREFIX="${RUN}.t${cyc}z."

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_ANALYSIS
mkdir -m 775 -p "${COM_ATMOS_ANALYSIS}"

###############################################################
# Run relevant script
Expand Down
20 changes: 5 additions & 15 deletions jobs/JGDAS_ATMOS_CHGRES_FORENKF
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,19 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "anal" -c "base anal echgres"
##############################################
# Set variables used in the script
##############################################
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export COMPONENT="atmos"
export CDUMP=${RUN/enkf}
export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}


##############################################
# Begin JOB SPECIFIC work
##############################################

export APREFIX="${CDUMP/enkf}.t${cyc}z."
export APREFIX_ENS="${CDUMP}.t${cyc}z."
export APREFIX="${CDUMP}.t${cyc}z."
export APREFIX_ENS="${RUN}.t${cyc}z."

if [ ${RUN_ENVIR} = "nco" -o ${ROTDIR_DUMP:-NO} = "YES" ]; then
export COMOUT=${COMOUT:-${ROTDIR}/${RUN/enkf}.${PDY}/${cyc}/atmos}
export COMOUT_ENS=${COMOUT_ENS:-${ROTDIR}/${RUN}.${PDY}/${cyc}}
else
export COMOUT="${ROTDIR}/${RUN/enkf}.${PDY}/${cyc}/atmos"
export COMOUT_ENS="${ROTDIR}/${RUN}.${PDY}/${cyc}"
fi
mkdir -m 775 -p ${COMOUT}

export ATMFCST_ENSRES="${COMOUT_ENS}/mem001/atmos/${APREFIX_ENS}atmf006.nc"
RUN=${CDUMP} YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_HISTORY
MEMDIR="mem001" YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_HISTORY_MEM:COM_ATMOS_HISTORY_TMPL

###############################################################
# Run relevant script
Expand Down
30 changes: 17 additions & 13 deletions jobs/JGDAS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,37 @@ export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}
# Specify NET and RUN Name and model
####################################
export model=${model:-gdas}
export COMPONENT="atmos"

##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${envir}/${NET}/${gfs_ver})/${RUN}.${PDY}/${cyc}/${COMPONENT}}
export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${gfs_ver}/${RUN}.${PDY})/${cyc}/${COMPONENT}/gempak}
for grid in 0p25 0p50 1p00; do
GRID=${grid} YMD=${PDY} HH=${cyc} generate_com -rx "COM_ATMOS_GRIB_${grid}:COM_ATMOS_GRIB_TMPL"
done

if [ ${SENDCOM} = YES ] ; then
mkdir -m 775 -p ${COMOUT}
fi
for grid in 1p00 0p25; do
prod_dir="COM_ATMOS_GEMPAK_${grid}"
GRID=${grid} YMD=${PDY} HH=${cyc} generate_com -rx "COM_ATMOS_GEMPAK_${grid}:COM_ATMOS_GEMPAK_TMPL"

if [[ ${SENDCOM} == YES && ! -d "${!prod_dir}" ]] ; then
mkdir -m 775 -p "${!prod_dir}"
fi
done


# TODO: These actions belong in an ex-script not a j-job (#1219)
if [ -f ${DATA}/poescript ]; then
rm ${DATA}/poescript
# TODO: These actions belong in an ex-script not a j-job
if [[ -f poescript ]]; then
rm -f poescript
fi

########################################################
# Execute the script.
echo "${SRCgfs}/exgdas_atmos_nawips.sh gdas 009 GDAS_GEMPAK " >> poescript
echo "${SRCgfs}/exgdas_atmos_nawips.sh gdas 009 GDAS_GEMPAK ${COM_ATMOS_GEMPAK_1p00}" >> poescript
########################################################

########################################################
# Execute the script for quater-degree grib
echo "${SRCgfs}/exgdas_atmos_nawips.sh gdas_0p25 009 GDAS_GEMPAK " >>poescript
echo "${SRCgfs}/exgdas_atmos_nawips.sh gdas_0p25 009 GDAS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}" >> poescript
########################################################

cat poescript
Expand All @@ -76,9 +81,8 @@ export OMP_NUM_THREADS=${threads}
APRUN="mpiexec -l -np ${ntasks} --cpu-bind verbose,core cfp"

APRUN_GEMPAKCFP=${APRUN_GEMPAKCFP:-${APRUN}}
APRUNCFP=$(eval echo ${APRUN_GEMPAKCFP})

${APRUNCFP} ${DATA}/poescript
${APRUN_GEMPAKCFP} ${DATA}/poescript
export err=$?; err_chk

############################################
Expand Down
24 changes: 9 additions & 15 deletions jobs/JGDAS_ATMOS_VERFOZN
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "vrfy" -c "base vrfy"


###############################
# Specify NET, RUN, and COMPONENT name
##############################
export COMPONENT="atmos"

export OZNMON_SUFFIX=${OZNMON_SUFFIX:-${NET}}

#---------------------------------------------
Expand Down Expand Up @@ -39,20 +33,20 @@ export USHoznmon=${USHoznmon:-${HOMEoznmon}/ush}
# determine PDY and cyc for previous cycle
#############################################

cdate=$(${NDATE} -6 ${PDY}${cyc})
echo 'pdate = ${pdate}'
pdate=$(${NDATE} -6 ${PDY}${cyc})
echo "pdate = ${pdate}"

export P_PDY=$(echo ${cdate} | cut -c1-8)
export p_cyc=$(echo ${cdate} | cut -c9-10)
export P_PDY=${pdate:0:8}
export p_cyc=${pdate:8:2}

#---------------------------------------------
# OZN_TANKDIR - WHERE OUTPUT DATA WILL RESIDE
#
export OZN_TANKDIR=${OZN_TANKDIR:-$(compath.py ${envir}/${NET}/${gfs_ver})}
export TANKverf_ozn=${TANKverf_ozn:-${OZN_TANKDIR}/${RUN}.${PDY}/${cyc}/${COMPONENT}/oznmon}
export TANKverf_oznM1=${TANKverf_oznM1:-${OZN_TANKDIR}/${RUN}.${P_PDY}/${p_cyc}/${COMPONENT}/oznmon}
export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${gfs_ver})}
export COMIN=${COMIN:-${COM_IN}/${RUN}.${PDY}/${cyc}/${COMPONENT}}
export TANKverf_ozn=${TANKverf_ozn:-${OZN_TANKDIR}/${RUN}.${PDY}/${cyc}/atmos/oznmon}
export TANKverf_oznM1=${TANKverf_oznM1:-${OZN_TANKDIR}/${RUN}.${P_PDY}/${p_cyc}/atmos/oznmon}

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_ANALYSIS

if [[ ! -d ${TANKverf_ozn} ]]; then
mkdir -p -m 775 ${TANKverf_ozn}
Expand All @@ -69,7 +63,7 @@ fi
# Set necessary environment variables
#
export OZN_AREA=${OZN_AREA:-glb}
export oznstat=${oznstat:-${COMIN}/gdas.t${cyc}z.oznstat}
export oznstat=${oznstat:-${COM_ATMOS_ANALYSIS}/gdas.t${cyc}z.oznstat}


#-------------------------------------------------------
Expand Down
28 changes: 9 additions & 19 deletions jobs/JGDAS_ATMOS_VERFRAD
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,21 @@ parm_file=${parm_file:-${PARMmon}/da_mon.parm}
# determine PDY and cyc for previous cycle
#############################################

cdate=$(${NDATE} -6 ${PDY}${cyc})
echo 'pdate = ${pdate}'
pdate=$(${NDATE} -6 ${PDY}${cyc})
echo "pdate = ${pdate}"

export P_PDY=$(echo ${cdate} | cut -c1-8)
export p_cyc=$(echo ${cdate} | cut -c9-10)
export P_PDY=${pdate:0:8}
export p_cyc=${pdate:8:2}

#############################################
# COMOUT - WHERE GSI OUTPUT RESIDES
# TANKverf - WHERE OUTPUT DATA WILL RESIDE
#############################################
export TANKverf=${TANKverf:-$(compath.py ${envir}/${NET}/${gfs_ver})}
export TANKverf_rad=${TANKverf_rad:-${TANKverf}/${RUN}.${PDY}/${cyc}/${COMPONENT}/radmon}
export TANKverf_radM1=${TANKverf_radM1:-${TANKverf}/${RUN}.${P_PDY}/${p_cyc}/${COMPONENT}/radmon}
export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${gfs_ver})}
export COMIN=${COMIN:-${COM_IN}/${RUN}.${PDY}/${cyc}/${COMPONENT}}

################################
# backwards compatibility for
# gfs v15 which doesn't have
# a $COMPONENT in output path
################################
if [[ ! -d ${COMIN} ]]; then
export COMIN=${COM_IN}/${RUN}.${PDY}/${cyc}
fi
export TANKverf_rad=${TANKverf_rad:-${TANKverf}/${RUN}.${PDY}/${cyc}/atmos/radmon}
export TANKverf_radM1=${TANKverf_radM1:-${TANKverf}/${RUN}.${P_PDY}/${p_cyc}/atmos/radmon}

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_ANALYSIS

mkdir -p -m 775 ${TANKverf_rad}

Expand All @@ -75,8 +65,8 @@ mkdir -p -m 775 ${TANKverf_rad}
########################################
export RAD_AREA=${RAD_AREA:-glb}

export biascr=${biascr:-${COMIN}/gdas.t${cyc}z.abias}
export radstat=${radstat:-${COMIN}/gdas.t${cyc}z.radstat}
export biascr=${biascr:-${COM_ATMOS_ANALYSIS}/gdas.t${cyc}z.abias}
export radstat=${radstat:-${COM_ATMOS_ANALYSIS}/gdas.t${cyc}z.radstat}

echo " "
echo "JOB HAS STARTED"
Expand Down
21 changes: 8 additions & 13 deletions jobs/JGDAS_ATMOS_VMINMON
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "vrfy" -c "base vrfy"

export COMPONENT="atmos"

###########################################################
# obtain unique process id (pid) and make temp directories
###########################################################
Expand All @@ -32,32 +30,29 @@ export USHminmon=${USHminmon:-${HOMEminmon}/ush}
# determine PDY and cyc for previous cycle
#############################################

cdate=$(${NDATE} -6 ${PDY}${cyc})
echo 'pdate = ${pdate}'
pdate=$(${NDATE} -6 ${PDY}${cyc})
echo "pdate = ${pdate}"

export P_PDY=$(echo ${cdate} | cut -c1-8)
export p_cyc=$(echo ${cdate} | cut -c9-10)
export P_PDY=${pdate:0:8}
export p_cyc=${pdate:8:2}


#############################################
# TANKverf - WHERE OUTPUT DATA WILL RESIDE
#############################################
export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${gfs_ver})}

export M_TANKverf=${M_TANKverf:-${COM_IN}/${RUN}.${PDY}/${cyc}/${COMPONENT}/minmon}
export M_TANKverfM1=${M_TANKverfM1:-${COM_IN}/${RUN}.${P_PDY}/${p_cyc}/${COMPONENT}/minmon}
export M_TANKverf=${M_TANKverf:-${COM_IN}/${RUN}.${PDY}/${cyc}/atmos/minmon}
export M_TANKverfM1=${M_TANKverfM1:-${COM_IN}/${RUN}.${P_PDY}/${p_cyc}/atmos/minmon}

export COMIN=${COMIN:-${COM_IN}/${RUN}.${PDY}/${cyc}/${COMPONENT}}
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_ANALYSIS

mkdir -p -m 775 ${M_TANKverf}



########################################
# Set necessary environment variables
########################################
export CYCLE_INTERVAL=6
export gsistat=${gsistat:-${COMIN}/gdas.t${cyc}z.gsistat}
export gsistat=${gsistat:-${COM_ATMOS_ANALYSIS}/gdas.t${cyc}z.gsistat}


########################################################
Expand Down
7 changes: 5 additions & 2 deletions jobs/JGDAS_ENKF_ARCHIVE
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "earc" -c "base earc"
##############################################
# Set variables used in the script
##############################################
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gdas"}}
export CDUMP=${RUN/enkf}

YMD=${PDY} HH=${cyc} generate_com -rx COM_TOP
MEMDIR="ensstat" YMD=${PDY} HH=${cyc} generate_com -rx \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is ensstat the best choice here? I guess that is to be for mean and spread?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note I have no better suggestion so this is probably as good as we can get

COM_ATMOS_ANALYSIS_ENSSTAT:COM_ATMOS_ANALYSIS_TMPL

###############################################################
# Run archive script
Expand Down
Loading