Add cycle-specific forecast lengths for GFS#40
Closed
Copilot wants to merge 5 commits into
Closed
Conversation
Co-authored-by: DavidHuber-NOAA <69919478+DavidHuber-NOAA@users.noreply.github.com>
Co-authored-by: DavidHuber-NOAA <69919478+DavidHuber-NOAA@users.noreply.github.com>
Co-authored-by: DavidHuber-NOAA <69919478+DavidHuber-NOAA@users.noreply.github.com>
Co-authored-by: DavidHuber-NOAA <69919478+DavidHuber-NOAA@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for varying GFS forecast lengths by cycle
Add cycle-specific forecast lengths for GFS
Oct 27, 2025
DavidHuber-NOAA
requested changes
Oct 27, 2025
DavidHuber-NOAA
left a comment
Owner
There was a problem hiding this comment.
I need to request several changes to this:
- This should be expanded to be expanded to all systems (gfs, gefs, sfs, and gcafs). In all cases, the variable prefix of interest is
FHMAX_GFS. - There are jinja-templated, bash configuration files in parm/config/{gfs,gefs,sfs,gcafs}/config.base.j2 that also need to be have their
FHMAX_GFS_*variables updated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables running GFS cycles at different forecast lengths (e.g., 00z/12z to 16 days, 06z/18z to 7.5 days) to reduce compute costs for intermediate cycles.
Changes
Configuration
FHMAX_GFS_{00,06,12,18}parameters todev/parm/config/gfs/yaml/defaults.yamlCycledef Generation (
dev/workflow/rocoto/gfs_cycled_xml.py)gfs_00,gfs_06,gfs_12,gfs_18) wheninterval_gfs ≤ 6HgfscycledefTask Generation (
dev/workflow/rocoto/gfs_tasks.py)_atmosoceaniceprod()and_upptask()detect differing cycle-specific FHMAX valuesgfs_atmos_prod_00,gfs_atmos_prod_06) with appropriate forecast hour rangesForecast Hour Utilities (
dev/workflow/rocoto/tasks.py)_get_cycle_specific_fhmax(config, cyc): Retrieves cycle-specific FHMAX, falling back toFHMAX_GFS_get_forecast_hours_for_cycle(run, config, cyc, component): Calculates forecast hours for a specific cycleUsage
With this configuration:
Backward compatible: omitting cycle-specific FHMAX or setting all to same value uses existing single-metatask workflow.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.