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

Add snow DA update and recentering for the EnKF forecasts #2690

Merged
Merged
Show file tree
Hide file tree
Changes from 130 commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
b0656aa
start to add new task
CoryMartin-NOAA May 9, 2024
d16119d
add new j-job
CoryMartin-NOAA May 9, 2024
b4c97f8
Save to do some initial testing
CoryMartin-NOAA May 9, 2024
3667349
more updates
CoryMartin-NOAA May 9, 2024
accc4f4
Merge branch 'NOAA-EMC:develop' into feature/snow-ensemble
CoryMartin-NOAA May 14, 2024
e565f21
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA May 16, 2024
81b7b6e
end of day commit
CoryMartin-NOAA May 16, 2024
3aaa8f6
End of day/week commit
CoryMartin-NOAA May 17, 2024
7085716
Merge branch 'NOAA-EMC:develop' into feature/snow-ensemble
CoryMartin-NOAA May 17, 2024
29641b2
save
CoryMartin-NOAA May 20, 2024
531136a
Merge branch 'feature/snow-ensemble' of https://github.com/CoryMartin…
CoryMartin-NOAA May 20, 2024
7491c35
Merge branch 'NOAA-EMC:develop' into feature/snow-ensemble
CoryMartin-NOAA May 24, 2024
d57e12f
snow changes
CoryMartin-NOAA May 24, 2024
89fd461
end of day commit
CoryMartin-NOAA May 29, 2024
f26822e
stage files is working
CoryMartin-NOAA May 30, 2024
2460af1
save updates
CoryMartin-NOAA May 30, 2024
057996d
more updates
CoryMartin-NOAA May 30, 2024
146dc60
make norm happy
CoryMartin-NOAA May 30, 2024
cff98a0
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA May 30, 2024
d7afb7b
norm is an angry old man
CoryMartin-NOAA May 30, 2024
eb5716d
remove esnowanl from enkfgfs
CoryMartin-NOAA May 30, 2024
256e182
Merge branch 'feature/snow-ensemble' of https://github.com/CoryMartin…
CoryMartin-NOAA May 30, 2024
6a57a64
end of day commit
CoryMartin-NOAA May 31, 2024
ebb3c31
fregrid working but seems a bit hacky
CoryMartin-NOAA Jun 3, 2024
2bdee22
norms and remove commented out code
CoryMartin-NOAA Jun 3, 2024
99fdfbe
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jun 6, 2024
42b3fbe
update snow ens
CoryMartin-NOAA Jun 6, 2024
a950c80
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jun 6, 2024
f380223
update some submodules
CoryMartin-NOAA Jun 6, 2024
73894dc
update some things
CoryMartin-NOAA Jun 6, 2024
79faad9
Merge branch 'feature/snow-ensemble' of https://github.com/CoryMartin…
CoryMartin-NOAA Jun 6, 2024
39624f8
update snow stage yaml
CoryMartin-NOAA Jun 7, 2024
758287d
whoops
CoryMartin-NOAA Jun 7, 2024
b65f381
hack increment times
CoryMartin-NOAA Jun 7, 2024
fd15a24
dates for increment
CoryMartin-NOAA Jun 7, 2024
4cfbe31
fregrid names
CoryMartin-NOAA Jun 7, 2024
9145004
updates to test
CoryMartin-NOAA Jun 7, 2024
aeb3f79
fix method call
CoryMartin-NOAA Jun 7, 2024
06c8e3a
Merge branch 'feature/snow-ensemble' of https://github.com/CoryMartin…
CoryMartin-NOAA Jun 7, 2024
f23aa20
coding norms
CoryMartin-NOAA Jun 7, 2024
4ba1cdc
end of week commit
CoryMartin-NOAA Jun 7, 2024
d0d711a
one more end of week commit
CoryMartin-NOAA Jun 7, 2024
18e7bd4
smore changes
CoryMartin-NOAA Jun 10, 2024
7370a0c
Merge branch 'feature/snow-ensemble' of https://github.com/CoryMartin…
CoryMartin-NOAA Jun 10, 2024
b029f90
ensmean to ensstat
CoryMartin-NOAA Jun 10, 2024
18aaafa
IAU changes
CoryMartin-NOAA Jun 10, 2024
135c57f
coding norms + more IAU fixes
CoryMartin-NOAA Jun 10, 2024
dde7463
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jun 13, 2024
9c47927
Update gdas
CoryMartin-NOAA Jun 13, 2024
33f6080
update enkf sfc update
CoryMartin-NOAA Jun 13, 2024
0643c95
more changes
CoryMartin-NOAA Jun 13, 2024
54539cd
update ci case
CoryMartin-NOAA Jun 13, 2024
554b545
fix dependencies
CoryMartin-NOAA Jun 14, 2024
aa43118
ignore these bufr2ioda links
CoryMartin-NOAA Jun 14, 2024
d6dae13
Merge branch 'NOAA-EMC:develop' into feature/snow-ensemble
CoryMartin-NOAA Jun 14, 2024
fa8dd8a
fixing some bugs
CoryMartin-NOAA Jun 14, 2024
c24d026
Merge branch 'feature/snow-ensemble' of https://github.com/corymartin…
CoryMartin-NOAA Jun 14, 2024
ea0bbf9
shellcheck
CoryMartin-NOAA Jun 14, 2024
90cd928
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jun 14, 2024
eb4cb43
more shellcheck
CoryMartin-NOAA Jun 14, 2024
f817b7e
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jun 24, 2024
aa45f33
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jun 27, 2024
a5a54ec
update gdas hash
CoryMartin-NOAA Jun 27, 2024
f31a90e
address reviewer comments
CoryMartin-NOAA Jun 28, 2024
4e64b86
update name of test
CoryMartin-NOAA Jun 28, 2024
1b9b085
Update env/WCOSS2.env
CoryMartin-NOAA Jun 28, 2024
80d4630
no need for a non-standard DATA directory
CoryMartin-NOAA Jun 28, 2024
9897e71
Update scripts/exgdas_enkf_sfc.sh
CoryMartin-NOAA Jun 28, 2024
f85c880
address reviewer comments
CoryMartin-NOAA Jun 28, 2024
55f2fe9
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jul 1, 2024
00c7d8e
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jul 1, 2024
57f0af1
Merge branch 'feature/snow-ensemble' of http://github.com/corymartin-…
CoryMartin-NOAA Jul 1, 2024
a207fe5
fix template issue + updates for g-w develop merge
CoryMartin-NOAA Jul 1, 2024
4f81ded
Address Jiarui's comments
CoryMartin-NOAA Jul 1, 2024
ea6c4b4
Merge branch 'develop' into feature/snow-ensemble
DavidHuber-NOAA Jul 3, 2024
57936f0
Merge branch 'NOAA-EMC:develop' into feature/snow-ensemble
CoryMartin-NOAA Jul 3, 2024
e2979b1
No NLN but NCP
CoryMartin-NOAA Jul 3, 2024
795e1d0
Update jobs/rocoto/esnowanl.sh
CoryMartin-NOAA Jul 3, 2024
e6c3331
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jul 5, 2024
1415c3d
address comments
CoryMartin-NOAA Jul 5, 2024
d496745
Merge branch 'feature/snow-ensemble' of https://github.com/corymartin…
CoryMartin-NOAA Jul 5, 2024
e98a65f
Update WCOSS2.env
CoryMartin-NOAA Jul 5, 2024
57145e5
use new wxflow technique for templates
CoryMartin-NOAA Jul 5, 2024
9c35852
Merge branch 'feature/snow-ensemble' of https://github.com/corymartin…
CoryMartin-NOAA Jul 5, 2024
bbbb231
some python issues
CoryMartin-NOAA Jul 5, 2024
947a727
more issues
CoryMartin-NOAA Jul 5, 2024
7c6b91f
fix templating
CoryMartin-NOAA Jul 5, 2024
9658e3d
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jul 9, 2024
114ff36
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jul 15, 2024
43aa0a1
Merge branch 'feature/snow-ensemble' of https://github.com/corymartin…
CoryMartin-NOAA Jul 15, 2024
2a1e544
Merge branch 'NOAA-EMC:develop' into feature/snow-ensemble
CoryMartin-NOAA Jul 16, 2024
4a2af93
address some comments
CoryMartin-NOAA Jul 17, 2024
591fe9d
Merge branch 'feature/snow-ensemble' of https://github.com/corymartin…
CoryMartin-NOAA Jul 17, 2024
1717a16
update GDAS hash
CoryMartin-NOAA Jul 17, 2024
e72868a
you shall not pass
CoryMartin-NOAA Jul 17, 2024
f860cc4
just remove mkdata stuff
CoryMartin-NOAA Jul 17, 2024
6d00e5c
some updates
CoryMartin-NOAA Jul 19, 2024
9180ea0
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Jul 29, 2024
dd493ad
address pynorms
CoryMartin-NOAA Jul 29, 2024
2972225
Address clara's comments + fregrid_exe
CoryMartin-NOAA Aug 1, 2024
f36c33f
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 1, 2024
1c555c6
shellcheck
CoryMartin-NOAA Aug 1, 2024
5d7c9b7
update from cdump to run
CoryMartin-NOAA Aug 1, 2024
dd2439e
update fregrid arg lists
CoryMartin-NOAA Aug 1, 2024
0422c9f
fix comments
CoryMartin-NOAA Aug 1, 2024
a1e1acc
Merge branch 'develop' into feature/snow-ensemble
aerorahul Aug 2, 2024
ad98bfe
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 2, 2024
df156fb
Fix npe_apply_inc issue
CoryMartin-NOAA Aug 2, 2024
bfc9e43
fix missing quote
CoryMartin-NOAA Aug 2, 2024
09b1133
remove CDUMP
CoryMartin-NOAA Aug 2, 2024
92af672
update gdas hash
CoryMartin-NOAA Aug 2, 2024
ff2ba68
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 2, 2024
b193128
Merge branch 'NOAA-EMC:develop' into develop
CoryMartin-NOAA Aug 7, 2024
129a925
Merge branch 'NOAA-EMC:develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 7, 2024
9679aa9
update increment mask
CoryMartin-NOAA Aug 7, 2024
56b940c
Marine DA updates (#2802)
guillaumevernieres Aug 7, 2024
efb7804
Feature/get arch adds an empty archive job to GEFS system (#2772)
AntonMFernando-NOAA Aug 7, 2024
cdac7bb
Check that a PR driver is still running before trying to kill it (#2799)
DavidHuber-NOAA Aug 7, 2024
03aee25
Revert "remove CDUMP"
CoryMartin-NOAA Aug 7, 2024
36bc71a
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 7, 2024
960b830
update gdas hash
CoryMartin-NOAA Aug 7, 2024
6cb4178
change hash
CoryMartin-NOAA Aug 7, 2024
16b0747
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 7, 2024
597d499
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 8, 2024
bc22c00
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 13, 2024
48b1cca
Add Gaea C5 to CI (#2814)
AnilKumar-NOAA Aug 13, 2024
9280086
Jenkins Pipeline Updates (#2815)
TerrenceMcGuinness-NOAA Aug 13, 2024
5ed6dec
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 13, 2024
d8e0e82
remove to_ymdh
CoryMartin-NOAA Aug 13, 2024
06d0fc2
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 13, 2024
6f732a1
update gdas hash
CoryMartin-NOAA Aug 14, 2024
886a9f1
not worry about threads on wcoss
CoryMartin-NOAA Aug 15, 2024
60ccca1
update gdas hash
CoryMartin-NOAA Aug 21, 2024
b3f8e5b
Merge branch 'develop' into feature/snow-ensemble
CoryMartin-NOAA Aug 21, 2024
1cb436e
skip wcoss2 for ci for now
CoryMartin-NOAA Aug 22, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ ush/month_name.sh
ush/imsfv3_scf2ioda.py
ush/atparse.bash
ush/run_bufr2ioda.py
ush/bufr2ioda_insitu*

# version files
versions/build.ver
Expand Down
4 changes: 2 additions & 2 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ pipeline {
}
}
}


stage( '5. FINALIZE' ) {
agent { label NodeName[machine].toLowerCase() }
Expand Down Expand Up @@ -297,6 +297,6 @@ pipeline {
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ arguments:
pslot: {{ 'pslot' | getenv }}
app: ATMA
resdetatmos: 96
resensatmos: 48
comroot: {{ 'RUNTESTS' | getenv }}/COMROOT
expdir: {{ 'RUNTESTS' | getenv }}/EXPDIR
icsdir: {{ 'ICSDIR_ROOT' | getenv }}/C96C48
idate: 2021122012
edate: 2021122100
nens: 0
nens: 2
gfs_cyc: 1
start: cold
yaml: {{ HOMEgfs }}/ci/cases/yamls/atmaerosnowDA_defaults_ci.yaml
Expand Down
9 changes: 8 additions & 1 deletion env/HERA.env
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ elif [[ "${step}" = "atmensanlletkf" ]]; then
elif [[ "${step}" = "atmensanlfv3inc" ]]; then

export NTHREADS_ATMENSANLFV3INC=${NTHREADSmax}
export APRUN_ATMENSANLFV3INC="${APRUN} --cpus-per-task=${NTHREADS_ATMENSANLFV3INC}"
export APRUN_ATMENSANLFV3INC="${APRUN} --cpus-per-task=${NTHREADS_ATMENSANLFV3INC}"

elif [[ "${step}" = "aeroanlrun" ]]; then

Expand All @@ -106,6 +106,13 @@ elif [[ "${step}" = "snowanl" ]]; then

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "esnowrecen" ]]; then

export NTHREADS_ESNOWRECEN=${NTHREADSmax}
export APRUN_ESNOWRECEN="${APRUN} --cpus-per-task=${NTHREADS_ESNOWRECEN}"

export APRUN_APPLY_INCR="${launcher} -n 6"
CoryMartin-NOAA marked this conversation as resolved.
Show resolved Hide resolved

elif [[ "${step}" = "marinebmat" ]]; then

export APRUNCFP="${launcher} -n \$ncmd --multi-prog"
Expand Down
8 changes: 8 additions & 0 deletions env/HERCULES.env
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ case ${step} in

export APRUN_APPLY_INCR="${launcher} -n 6"
;;
"esnowrecen")

export NTHREADS_ESNOWRECEN=${NTHREADSmax}
export APRUN_ESNOWRECEN="${APRUN} --cpus-per-task=${NTHREADS_ESNOWRECEN}"

export APRUN_APPLY_INCR="${launcher} -n 6"
;;

"marinebmat")

export APRUNCFP="${launcher} -n \$ncmd ${mpmd_opt}"
Expand Down
7 changes: 7 additions & 0 deletions env/JET.env
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ elif [[ "${step}" = "snowanl" ]]; then

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "esnowrecen" ]]; then

export NTHREADS_ESNOWRECEN=${NTHREADSmax}
export APRUN_ESNOWRECEN="${APRUN} --cpus-per-task=${NTHREADS_ESNOWRECEN}"

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "atmanlfv3inc" ]]; then

export NTHREADS_ATMANLFV3INC=${NTHREADSmax}
Expand Down
7 changes: 7 additions & 0 deletions env/ORION.env
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ elif [[ "${step}" = "snowanl" ]]; then

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "esnowrecen" ]]; then

export NTHREADS_ESNOWRECEN=${NTHREADSmax}
export APRUN_ESNOWRECEN="${APRUN} --cpus-per-task=${NTHREADS_ESNOWRECEN}"

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "atmanlfv3inc" ]]; then

export NTHREADS_ATMANLFV3INC=${NTHREADSmax}
Expand Down
9 changes: 8 additions & 1 deletion env/S4.env
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ elif [[ "${step}" = "atmensanlletkf" ]]; then
elif [[ "${step}" = "atmensanlfv3inc" ]]; then

export NTHREADS_ATMENSANLFV3INC=${NTHREADSmax}
export APRUN_ATMENSANLFV3INC="${APRUN}"
export APRUN_ATMENSANLFV3INC="${APRUN}"

elif [[ "${step}" = "aeroanlrun" ]]; then

Expand All @@ -89,6 +89,13 @@ elif [[ "${step}" = "snowanl" ]]; then

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "esnowrecen" ]]; then
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed

export NTHREADS_ESNOWRECEN=${NTHREADSmax}
export APRUN_ESNOWRECEN="${APRUN} --cpus-per-task=${NTHREADS_ESNOWRECEN}"
Fixed Show fixed Hide fixed

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "atmanlfv3inc" ]]; then

export NTHREADS_ATMANLFV3INC=${NTHREADSmax}
Expand Down
7 changes: 7 additions & 0 deletions env/WCOSS2.env
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ elif [[ "${step}" = "snowanl" ]]; then

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "esnowrecen" ]]; then

export NTHREADS_ESNOWRECEN=${NTHREADSmax}
export APRUN_ESNOWRECEN="${APRUN} --cpus-per-task=${NTHREADS_ESNOWRECEN}"

export APRUN_APPLY_INCR="${launcher} -n 6"

elif [[ "${step}" = "atmanlfv3inc" ]]; then

export NTHREADS_ATMANLFV3INC=${NTHREADSmax}
Expand Down
59 changes: 59 additions & 0 deletions jobs/JGDAS_ENKF_SNOW_RECENTER
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "esnowrecen" -c "base esnowrecen"

##############################################
# Set variables used in the script
##############################################
# Ignore possible spelling error (nothing is misspelled)
# shellcheck disable=SC2153
GDUMP="gdas"
export GDUMP
WalterKolczynski-NOAA marked this conversation as resolved.
Show resolved Hide resolved

##############################################
# Begin JOB SPECIFIC work
##############################################
# Generate COM variables from templates
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_OBS:COM_OBS_TMPL \
COMOUT_ATMOS_ANALYSIS:COM_ATMOS_ANALYSIS_TMPL \
COMOUT_CONF:COM_CONF_TMPL
MEMDIR="ensstat" YMD=${PDY} HH=${cyc} declare_from_tmpl \
COMOUT_SNOW_ANALYSIS:COM_SNOW_ANALYSIS_TMPL

mkdir -p "${COMOUT_SNOW_ANALYSIS}" "${COMOUT_CONF}"

for imem in $(seq 1 "${NMEM_ENS}"); do
memchar="mem$(printf %03i "${imem}")"
MEMDIR=${memchar} YMD=${PDY} HH=${cyc} declare_from_tmpl \
COMOUT_SNOW_ANALYSIS:COM_SNOW_ANALYSIS_TMPL
mkdir -p "${COMOUT_SNOW_ANALYSIS}"
done

###############################################################
# Run relevant script

EXSCRIPT=${SNOWANLPY:-${SCRgfs}/exgdas_enkf_snow_recenter.py}
${EXSCRIPT}
status=$?
(( status != 0 )) && exit "${status}"

##############################################
# End JOB SPECIFIC work
##############################################

##############################################
# Final processing
##############################################
if [[ -e "${pgmout}" ]] ; then
cat "${pgmout}"
fi

##########################################
# Remove the Temporary working directory
##########################################
cd "${DATAROOT}" || exit 1
[[ "${KEEPDATA}" = "NO" ]] && rm -rf "${DATA}"

exit 0
6 changes: 6 additions & 0 deletions jobs/JGLOBAL_PREP_SNOW_OBS
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@ if [[ -e "${pgmout}" ]] ; then
cat "${pgmout}"
fi

##########################################
# Remove the Temporary working directory
##########################################
cd "${DATAROOT}" || exit 1
[[ ${KEEPDATA} = "NO" ]] && rm -rf "${DATA}"

exit 0
6 changes: 6 additions & 0 deletions jobs/JGLOBAL_SNOW_ANALYSIS
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,10 @@ if [[ -e "${pgmout}" ]] ; then
cat "${pgmout}"
fi

##########################################
# Remove the Temporary working directory
##########################################
cd "${DATAROOT}" || exit 1
[[ ${KEEPDATA} = "NO" ]] && rm -rf "${DATA}"

exit 0
18 changes: 18 additions & 0 deletions jobs/rocoto/esnowrecen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source UFSDA workflow modules
. "${HOMEgfs}/ush/load_ufsda_modules.sh"
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"

export job="esnowrecen"
export jobid="${job}.$$"

###############################################################
# Execute the JJOB
"${HOMEgfs}/jobs/JGDAS_ENKF_SNOW_RECENTER"
status=$?
exit "${status}"
29 changes: 29 additions & 0 deletions parm/config/gfs/config.esnowrecen
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#! /usr/bin/env bash

########## config.esnowrecen ##########
# configuration common to snow ensemble analysis tasks

echo "BEGIN: config.esnowrecen"

# Get task specific resources
source "${EXPDIR}/config.resources" esnowrecen

export JCB_BASE_YAML="${PARMgfs}/gdas/snow/jcb-base.yaml.j2"
export JCB_ALGO_YAML="${PARMgfs}/gdas/snow/jcb-fv3jedi_land_ensrecenter.yaml.j2"

export JEDI_FIX_YAML="${PARMgfs}/gdas/atm_jedi_fix.yaml.j2"
export SNOW_ENS_STAGE_TMPL="${PARMgfs}/gdas/snow_stage_ens_update.yaml.j2"
export SNOW_OROG_STAGE_TMPL="${PARMgfs}/gdas/snow_stage_orog.yaml.j2"
export SNOW_ENS_FINALIZE_TMPL="${PARMgfs}/gdas/snow_finalize_ens_update.yaml.j2"

# Name of the executable that applies increment to bkg and its namelist template
export APPLY_INCR_EXE="${EXECgfs}/apply_incr.exe"
export ENS_APPLY_INCR_NML_TMPL="${PARMgfs}/gdas/snow/letkfoi/ens_apply_incr_nml.j2"

export io_layout_x=@IO_LAYOUT_X@
export io_layout_y=@IO_LAYOUT_Y@

export JEDIEXE=${EXECgfs}/gdasapp_land_ensrecenter.x
export FREGRID=${EXECgfs}/fregrid.x

echo "END: config.esnowrecen"
31 changes: 30 additions & 1 deletion parm/config/gfs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (( $# != 1 )); then
echo "prep prepsnowobs prepatmiodaobs"
echo "atmanlinit atmanlvar atmanlfv3inc atmanlfinal"
echo "atmensanlinit atmensanlletkf atmensanlfv3inc atmensanlfinal"
echo "snowanl"
echo "snowanl esnowrecen"
echo "prepobsaero aeroanlinit aeroanlrun aeroanlfinal"
echo "anal sfcanl analcalc analdiag fcst echgres"
echo "upp atmos_products"
Expand Down Expand Up @@ -340,6 +340,35 @@ case ${step} in
tasks_per_node=$(( max_tasks_per_node / threads_per_task ))
;;

"esnowrecen")
# below lines are for creating JEDI YAML
case ${CASE} in
"C768")
layout_x=6
layout_y=6
;;
"C384")
layout_x=5
layout_y=5
;;
aerorahul marked this conversation as resolved.
Show resolved Hide resolved
"C192" | "C96" | "C48")
layout_x=1
layout_y=1
;;
*)
echo "FATAL ERROR: Resources not defined for job ${step} at resolution ${CASE}"
exit 4
esac

export layout_x
export layout_y

walltime="00:15:00"
ntasks=$(( layout_x * layout_y * 6 ))
threads_per_task=1
tasks_per_node=$(( max_tasks_per_node / threads_per_task ))
;;

"prepobsaero")
walltime="00:30:00"
ntasks=1
Expand Down
43 changes: 43 additions & 0 deletions parm/gdas/snow_finalize_ens_update.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
copy:
######################################
# copy analyses to directories
######################################
{% for mem in range(1, NMEM_ENS + 1) %}
# define variables
# Declare a dict of search and replace terms to run on each template
{% set tmpl_dict = {'${ROTDIR}':ROTDIR,
'${RUN}':RUN,
'${YMD}':current_cycle | to_YMD ,
'${HH}':current_cycle | strftime("%H"),
'${MEMDIR}':"mem" + '%03d' % mem} %}

{% for tile in range(1, ntiles+1) %}
- ["{{ DATA }}/anl/mem{{ '%03d' % mem }}/{{ current_cycle | to_fv3time }}.sfc_data.tile{{ tile }}.nc", "{{ COM_SNOW_ANALYSIS_TMPL | replace_tmpl(tmpl_dict) }}/{{ current_cycle | to_fv3time }}.sfc_data.tile{{ tile }}.nc"]
{% endfor %}
{% if DOIAU == True %}
# if using IAU, also need analyses copied at the beginning of the window
{% for tile in range(1, ntiles+1) %}
- ["{{ DATA }}/anl/mem{{ '%03d' % mem }}/{{ SNOW_WINDOW_BEGIN | to_fv3time }}.sfc_data.tile{{ tile }}.nc", "{{ COM_SNOW_ANALYSIS_TMPL | replace_tmpl(tmpl_dict) }}/{{ SNOW_WINDOW_BEGIN | to_fv3time }}.sfc_data.tile{{ tile }}.nc"]
{% endfor %}
{% endif %}
{% endfor %}
######################################
# copy ensemble mean increment to COM
######################################
# define variables
# Declare a dict of search and replace terms to run on each template
{% set tmpl_dict = {'${ROTDIR}':ROTDIR,
'${RUN}':RUN,
'${YMD}':current_cycle | to_YMD ,
'${HH}':current_cycle | strftime("%H"),
'${MEMDIR}':"ensstat"} %}

{% for tile in range(1, ntiles+1) %}
- ["{{ DATA }}/inc/ensmean/snowinc.{{ current_cycle | to_fv3time }}.sfc_data.tile{{ tile }}.nc", "{{ COM_SNOW_ANALYSIS_TMPL | replace_tmpl(tmpl_dict) }}/snowinc.{{ current_cycle | to_fv3time }}.sfc_data.tile{{ tile }}.nc"]
{% endfor %}
{% if DOIAU == True %}
# if using IAU, also need increment copied at the beginning of the window
{% for tile in range(1, ntiles+1) %}
- ["{{ DATA }}/inc/ensmean/snowinc.{{ SNOW_WINDOW_BEGIN | to_fv3time }}.sfc_data.tile{{ tile }}.nc", "{{ COM_SNOW_ANALYSIS_TMPL | replace_tmpl(tmpl_dict) }}/snowinc.{{ SNOW_WINDOW_BEGIN | to_fv3time }}.sfc_data.tile{{ tile }}.nc"]
{% endfor %}
{% endif %}
Loading
Loading