pub struct SeasonDefinition {
pub id: usize,
pub label: String,
pub month_start: u32,
pub day_start: Option<u32>,
pub month_end: Option<u32>,
pub day_end: Option<u32>,
}Expand description
A single season entry mapping a season ID to a calendar period.
Season definitions are required when deriving AR parameters from inflow history — the season determines how history values are aggregated into seasonal means and standard deviations.
Source: stages.json season_definitions.seasons[].
See Input Scenarios §1.1.
Fields§
§id: usizeSeason index (0-based). For monthly cycles: 0 = January, …, 11 = December. For weekly cycles: 0-51 (ISO week numbers).
label: StringHuman-readable label (e.g., “January”, “Q1”, “Wet Season”).
month_start: u32Calendar month where this season starts (1-12).
For monthly cycle_type, this uniquely identifies the month.
day_start: Option<u32>Calendar day where this season starts (1-31).
Only used when cycle_type is Custom. Default: 1.
month_end: Option<u32>Calendar month where this season ends (1-12).
Only used when cycle_type is Custom.
day_end: Option<u32>Calendar day where this season ends (1-31).
Only used when cycle_type is Custom.
Trait Implementations§
Source§impl Clone for SeasonDefinition
impl Clone for SeasonDefinition
Source§fn clone(&self) -> SeasonDefinition
fn clone(&self) -> SeasonDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more