Skip to content

Commit

Permalink
Make right dependence and links to RRFS ensembles for GSI hybrid
Browse files Browse the repository at this point in the history
analysis.
  • Loading branch information
ming hu committed Oct 7, 2024
1 parent e19cf57 commit 97e3d27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 6 additions & 5 deletions parm/FV3LAM_wflow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Workflow task names.
<!ENTITY TAG "{{ tag }}">
<!ENTITY NET "{{ net }}">
<!ENTITY RUN "{{ run }}">
<!ENTITY RUNE "enk{{ run }}">
<!ENTITY envir "{{ envir }}">

<!--
Expand Down Expand Up @@ -1664,15 +1665,15 @@ MODULES_RUN_TASK_FP script.
{%- endfor %}
</or>
{% for h in range(1, num_ens_members+1) %}
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUN;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast_spinup/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUNE;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast_spinup/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
{%- endfor %}
</and>
<and>
{%- for h in cycl_hrs_prodstart_ens %}
<strneq><left>{{ h }}</left><right><cyclestr>@H</cyclestr></right></strneq>
{%- endfor %}
{% for h in range(1, num_ens_members+1) %}
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUN;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUNE;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
{%- endfor %}
</and>
</or>
Expand Down Expand Up @@ -2562,21 +2563,21 @@ MODULES_RUN_TASK_FP script.
{%- endfor %}
</or>
{% for h in range(1, num_ens_members+1) %}
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUN;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast_spinup/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUNE;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast_spinup/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
{%- endfor %}
</and>
<and>
{%- for h in cycl_hrs_prodstart_ens %}
<strneq><left>{{ h }}</left><right><cyclestr>@H</cyclestr></right></strneq>
{%- endfor %}
{% for h in range(1, num_ens_members+1) %}
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUN;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUNE;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
{%- endfor %}
</and>
{%- else %}
<and>
{% for h in range(1, num_ens_members+1) %}
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUN;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
<datadep age="00:00:01:00"><cyclestr offset="-{{ da_cycle_interval_hrs }}:00:00">&RRFSE_FG_ROOT;/&RUNE;.@Y@m@d/@H/m{{ "%03d" % h }}/forecast/RESTART/</cyclestr><cyclestr>@Y@m@[email protected]</cyclestr></datadep>
{%- endfor %}
</and>
{%- endif %}
Expand Down
9 changes: 5 additions & 4 deletions scripts/exrrfs_analysis_gsi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,16 @@ if [[ ${regional_ensemble_option:-1} -eq 5 ]]; then

while [[ $imem -le ${NUM_ENS_MEMBERS} ]];do
memcharv0=$( printf "%03d" $imem )
memchar=mem$( printf "%04d" $imem )
memchar=m$( printf "%03d" $imem )

YYYYMMDDHHmInterv=$( date +%Y%m%d%H -d "${START_DATE} ${DA_CYCLE_INTERV} hours ago" )
YYYYMMDDInterv=$( date +%Y%m%d -d "${START_DATE} ${DA_CYCLE_INTERV} hours ago" )
HHInterv=$( date +%H -d "${START_DATE} ${DA_CYCLE_INTERV} hours ago" )
restart_prefix="${YYYYMMDD}.${HH}0000."
bkpathmem=${RRFSE_FG_ROOT}/${YYYYMMDDHHmInterv}/${memchar}/forecast/RESTART
bkpathmem=${RRFSE_FG_ROOT}/enkfrrfs.${YYYYMMDDInterv}/${HHInterv}/${memchar}/forecast/RESTART
if [ ${DO_SPINUP} == "TRUE" ]; then
for cycl_hrs in ${CYCL_HRS_PRODSTART_ENS[@]}; do
if [ $HH == ${cycl_hrs} ]; then
bkpathmem=${RRFSE_FG_ROOT}/${YYYYMMDDHHmInterv}/${memchar}/forecast_spinup/RESTART
bkpathmem=${RRFSE_FG_ROOT}/enkfrrfs.${YYYYMMDDInterv}/${HHInterv}/${memchar}/forecast_spinup/RESTART
fi
done
fi
Expand Down

0 comments on commit 97e3d27

Please sign in to comment.