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 73 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
6 changes: 3 additions & 3 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ pipeline {
}

stage('4. Run Tests') {
failFast false
failFast false
matrix {
agent { label NodeName[machine].toLowerCase() }
axes {
axis {
name 'Case'
// TODO add dynamic list of cases from env vars (needs addtional plugins)
values 'C48C48_ufs_hybatmDA', 'C48_ATM', 'C48_S2SW', 'C48_S2SWA_gefs', 'C48mx500_3DVarAOWCDA', 'C96C48_hybatmDA', 'C96_atm3DVar', 'C96_atmaerosnowDA'
values 'C48C48_ufs_hybatmDA', 'C48_ATM', 'C48_S2SW', 'C48_S2SWA_gefs', 'C48mx500_3DVarAOWCDA', 'C96C48_hybatmDA', 'C96_atm3DVar', 'C96C48_hybatmaerosnowDA'
}
}
stages {
Expand Down Expand Up @@ -296,6 +296,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
12 changes: 11 additions & 1 deletion env/HERA.env
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,17 @@ elif [[ "${step}" = "snowanl" ]]; then
[[ ${NTHREADS_SNOWANL} -gt ${nth_max} ]] && export NTHREADS_SNOWANL=${nth_max}
export APRUN_SNOWANL="${launcher} -n ${npe_snowanl} --cpus-per-task=${NTHREADS_SNOWANL}"

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

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

nth_max=$((npe_node_max / npe_node_esnowanl))

export NTHREADS_ESNOWANL=${nth_esnowanl:-${nth_max}}
[[ ${NTHREADS_ESNOWANL} -gt ${nth_max} ]] && export NTHREADS_ESNOWANL=${nth_max}
export APRUN_ESNOWANL="${launcher} -n ${npe_esnowanl} --cpus-per-task=${NTHREADS_ESNOWANL}"

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

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

Expand Down
12 changes: 11 additions & 1 deletion env/HERCULES.env
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,17 @@ case ${step} in
[[ ${NTHREADS_SNOWANL} -gt ${nth_max} ]] && export NTHREADS_SNOWANL=${nth_max}
export APRUN_SNOWANL="${launcher} -n ${npe_snowanl} --cpus-per-task=${NTHREADS_SNOWANL}"

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

nth_max=$((npe_node_max / npe_node_esnowanl))

export NTHREADS_ESNOWANL=${nth_esnowanl:-${nth_max}}
[[ ${NTHREADS_ESNOWANL} -gt ${nth_max} ]] && export NTHREADS_ESNOWANL=${nth_max}
export APRUN_ESNOWANL="${launcher} -n ${npe_esnowanl} --cpus-per-task=${NTHREADS_ESNOWANL}"

export APRUN_APPLY_INCR="${launcher} -n ${npe_apply_incr}"
;;
"ocnanalbmat")

Expand Down
12 changes: 11 additions & 1 deletion env/JET.env
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,17 @@ elif [[ "${step}" = "snowanl" ]]; then
[[ ${NTHREADS_SNOWANL} -gt ${nth_max} ]] && export NTHREADS_SNOWANL=${nth_max}
export APRUN_SNOWANL="${launcher} -n ${npe_snowanl}"

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

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

nth_max=$((npe_node_max / npe_node_esnowanl))

export NTHREADS_ESNOWANL=${nth_esnowanl:-${nth_max}}
[[ ${NTHREADS_ESNOWANL} -gt ${nth_max} ]] && export NTHREADS_ESNOWANL=${nth_max}
export APRUN_ESNOWANL="${launcher} -n ${npe_esnowanl} --cpus-per-task=${NTHREADS_ESNOWANL}"

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

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

Expand Down
12 changes: 11 additions & 1 deletion env/ORION.env
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,17 @@ elif [[ "${step}" = "snowanl" ]]; then
[[ ${NTHREADS_SNOWANL} -gt ${nth_max} ]] && export NTHREADS_SNOWANL=${nth_max}
export APRUN_SNOWANL="${launcher} -n ${npe_snowanl} --cpus-per-task=${NTHREADS_SNOWANL}"

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

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

nth_max=$((npe_node_max / npe_node_esnowanl))

export NTHREADS_ESNOWANL=${nth_esnowanl:-${nth_max}}
[[ ${NTHREADS_ESNOWANL} -gt ${nth_max} ]] && export NTHREADS_ESNOWANL=${nth_max}
export APRUN_ESNOWANL="${launcher} -n ${npe_esnowanl} --cpus-per-task=${NTHREADS_ESNOWANL}"

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

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

Expand Down
12 changes: 11 additions & 1 deletion env/S4.env
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,17 @@ elif [[ "${step}" = "snowanl" ]]; then
[[ ${NTHREADS_SNOWANL} -gt ${nth_max} ]] && export NTHREADS_SNOWANL=${nth_max}
export APRUN_SNOWANL="${launcher} -n ${npe_snowanl}"

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

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

nth_max=$((npe_node_max / npe_node_esnowanl))

export NTHREADS_ESNOWANL=${nth_esnowanl:-${nth_max}}
[[ ${NTHREADS_ESNOWANL} -gt ${nth_max} ]] && export NTHREADS_ESNOWANL=${nth_max}
export APRUN_ESNOWANL="${launcher} -n ${npe_esnowanl} --cpus-per-task=${NTHREADS_ESNOWANL}"

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

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

Expand Down
12 changes: 11 additions & 1 deletion env/WCOSS2.env
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,17 @@ elif [[ "${step}" = "snowanl" ]]; then
[[ ${NTHREADS_SNOWANL} -gt ${nth_max} ]] && export NTHREADS_SNOWANL=${nth_max}
export APRUN_SNOWANL="${launcher} -n ${npe_snowanl}"

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

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

nth_max=$((npe_node_max / npe_node_esnowanl))

export NTHREADS_ESNOWANL=${nth_esnowanl:-${nth_max}}
[[ ${NTHREADS_ESNOWANL} -gt ${nth_max} ]] && export NTHREADS_ESNOWANL=${nth_max}
export APRUN_ESNOWANL="${launcher} -n ${npe_esnowanl} --cpus-per-task=${NTHREADS_ESNOWANL}"

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

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

Expand Down
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
59 changes: 59 additions & 0 deletions jobs/JGLOBAL_SNOW_ENSEMBLE_ANALYSIS
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 "esnowanl" -c "base esnowanl"

##############################################
# Set variables used in the script
##############################################
# Ignore possible spelling error (nothing is misspelled)
# shellcheck disable=SC2153
GDUMP="gdas"
GDUMP_ENS="enkfgdas"
export GDUMP

##############################################
# 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} RUN=${GDUMP_ENS} 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}/exglobal_snow_ensemble_analysis.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
24 changes: 24 additions & 0 deletions jobs/rocoto/esnowanl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /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="esnowanl"
export jobid="${job}.$$"

###############################################################
# setup python path for workflow utilities and tasks
wxflowPATH="${HOMEgfs}/ush/python:${HOMEgfs}/ush/python/wxflow/src"
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${wxflowPATH}"
export PYTHONPATH
Copy link
Contributor

Choose a reason for hiding this comment

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

This will depend on the other PR that adds wxflow to load_ufsda_modules.sh. That will greatly simplify things.
Just a note as this may or may not be needed based on time of merge

CoryMartin-NOAA marked this conversation as resolved.
Show resolved Hide resolved

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

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

echo "BEGIN: config.esnowanl"

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

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
aerorahul marked this conversation as resolved.
Show resolved Hide resolved

echo "END: config.esnowanl"
33 changes: 32 additions & 1 deletion parm/config/gfs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (( $# != 1 )); then
echo "prep prepsnowobs prepatmiodaobs"
echo "atmanlinit atmanlvar atmanlfv3inc atmanlfinal"
echo "atmensanlinit atmensanlletkf atmensanlfv3inc atmensanlfinal"
echo "snowanl"
echo "snowanl esnowanl"
echo "prepobsaero aeroanlinit aeroanlrun aeroanlfinal"
echo "anal sfcanl analcalc analdiag fcst echgres"
echo "upp atmos_products"
Expand Down Expand Up @@ -369,6 +369,37 @@ case ${step} in
export npe_snowanl=$(( layout_x * layout_y * 6 ))
export nth_snowanl=1
export npe_node_snowanl=$(( npe_node_max / nth_snowanl ))
export npe_apply_incr=6
;;

"esnowanl")
# 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 ${job} at resolution ${CASE}"
exit 4
esac

export layout_x
export layout_y

export wtime_esnowanl="00:15:00"
export npe_esnowanl=$(( layout_x * layout_y * 6 ))
export nth_esnowanl=1
export npe_node_esnowanl=$(( npe_node_max / nth_esnowanl ))
export npe_apply_incr=6
;;

"prepobsaero")
Expand Down
Loading
Loading