Skip to content

Commit

Permalink
Attempt at adding POSTPROC_SUBH_LEN_HRS variable to control how long to
Browse files Browse the repository at this point in the history
apply the 15 minute aggregating within exrrfs_post.sh
  • Loading branch information
MatthewPyle-NOAA committed Jan 14, 2025
1 parent c1fb1a8 commit e5e71b7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions parm/config/det/var_defns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ WFLOW_LAUNCH_LOG_FN="log.launch_FV3LAM_wflow"
# POSTPROC_LONG_LEN_HRS:
# The length of long post process, in integer hours.
#
# POSTPROC_SUBH_LEN_HRS:
# The length of subhourly product generation, in integer hours.
#
# CYCL_HRS_HYB_FV3LAM_ENS:
# An array containing the hours of the day at which the GSI hybrid using
# FV3LAM ensemeble.
Expand Down Expand Up @@ -630,6 +633,7 @@ BOUNDARY_LONG_LEN_HRS="0"
BOUNDARY_PROC_GROUP_NUM="72"
POSTPROC_LEN_HRS="18"
POSTPROC_LONG_LEN_HRS="60"
POSTPROC_SUBH_LEN_HRS="18"
FCST_LEN_HRS="18"
FCST_LEN_HRS_SPINUP="1"
FCST_LEN_HRS_CYCLES=( \
Expand Down
2 changes: 1 addition & 1 deletion scripts/exrrfs_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ if [ ${len_fhr} -eq 9 ]; then
post_min=${fhr:4:2}
if [ ${post_min} -lt ${nsout_min} ]; then
post_min=00
if [ $post_fhr -gt 1 -a $post_fhr -le 018 ]
if [ $post_fhr -ge 1 -a $post_fhr -le $POSTPROC_SUBH_LEN_HRS ]
then
SUBH_GEN=1
fi
Expand Down
4 changes: 4 additions & 0 deletions ush/config_defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,9 @@ WFLOW_LAUNCH_LOG_FN="log.launch_FV3LAM_wflow"
# POSTPROC_LONG_LEN_HRS:
# The length of long post process, in integer hours.
#
# POSTPROC_SUBH_LEN_HRS:
# The number of hours (integer) for which subhourly output is generated
#
# CYCL_HRS_HYB_FV3LAM_ENS:
# An array containing the hours of the day at which the GSI hybrid using
# FV3LAM ensemeble.
Expand Down Expand Up @@ -610,6 +613,7 @@ BOUNDARY_LONG_LEN_HRS="0"
BOUNDARY_PROC_GROUP_NUM="1"
POSTPROC_LEN_HRS="1"
POSTPROC_LONG_LEN_HRS="1"
POSTPROC_SUBH_LEN_HRS="0"
FCST_LEN_HRS="24"
FCST_LEN_HRS_SPINUP="1"
FCST_LEN_HRS_CYCLES=()
Expand Down
1 change: 1 addition & 0 deletions ush/generate_FV3LAM_wflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ settings="\
'boundary_long_len_hrs': ${BOUNDARY_LONG_LEN_HRS}
'postproc_len_hrs': ${POSTPROC_LEN_HRS}
'postproc_long_len_hrs': ${POSTPROC_LONG_LEN_HRS}
'postproc_subh_len_hrs': ${POSTPROC_SUBH_LEN_HRS}
'postproc_nsout_min': ${NSOUT_MIN}
'postproc_nfhmax_hrs': ${NFHMAX_HF}
'postproc_nfhout_hrs': ${NFHOUT}
Expand Down
1 change: 1 addition & 0 deletions ush/sample_configs/RRFS_A/config.sh_rrfs_a_n3
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ RESTART_INTERVAL_LONG="1 2 12 24 36 48"
## set up post
POSTPROC_LEN_HRS="18"
POSTPROC_LONG_LEN_HRS="60"
POSTPROC_SUBH_LEN_HRS="18"

# default
OUTPUT_FH="1 -1"
Expand Down

0 comments on commit e5e71b7

Please sign in to comment.