Skip to content

feat: add CycleIntervalProvider and set_start_step_to_zero patch#564

Open
floriankrb wants to merge 5 commits intomainfrom
feat/cycle-interval-provider
Open

feat: add CycleIntervalProvider and set_start_step_to_zero patch#564
floriankrb wants to merge 5 commits intomainfrom
feat/cycle-interval-provider

Conversation

@floriankrb
Copy link
Member

@floriankrb floriankrb commented Mar 9, 2026

Add a new CycleIntervalProvider for defining accumulation intervals based on repeating cycles (e.g. operational forecast schedules).

  • New CycleIntervalProvider class in interval_generators.py
  • Register it in the interval generator factory under cycle key
  • Add set_start_step_to_zero patch in field_to_interval.py for data with wrongly encoded start_step

This CycleIntervalProvider may not how we can support forecast datata, it has the very strong limitation that it cannot support multiple data for the same valid date.
We may not want to keep it very long, but it is a hacky way to give fine control over how to build accumulations with forecast data.

Split from #545.

- New CycleIntervalProvider class for defining accumulation intervals
  based on repeating cycles (e.g. operational forecast schedules)
- Register it in the interval generator factory under 'cycle' key
- Add set_start_step_to_zero patch in field_to_interval for data with
  wrongly encoded start_step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: To be triaged

Development

Successfully merging this pull request may close these issues.

1 participant