Creates a standardized temporal framework for CDSimX simulations. Supports daily, monthly, and yearly temporal resolutions.
generate_time_index(
start_date = "1990-01-01",
end_date = "1999-12-31",
frequency = "daily",
calendar = "standard"
)A data.frame containing:
Start date
End date
Date index
Calendar year
Month number
Day of month
Day of year
Week number
Quarter
Climatological season
Simulation resolution
This function becomes the backbone of all climate simulations, ensuring that all variables share a synchronized temporal structure.
daily_index <- generate_time_index(
start_date = "2000-01-01",
end_date = "2000-12-31",
frequency = "daily"
)
#> Generated 366 time steps at daily resolution.
monthly_index <- generate_time_index(
start_date = "1990-01-01",
end_date = "2020-12-31",
frequency = "monthly"
)
#> Generated 372 time steps at monthly resolution.