Generates a complete synthetic climate dataset by internally calling all climate simulation modules and merging their outputs into a single dataframe.

simulate_climate(stations, time_index, seed = NULL)

Arguments

stations

Output from create_stations().

time_index

Output from generate_time_index().

seed

Optional random seed for reproducibility.

Value

A merged dataframe containing all simulated climate variables.

Details

The function currently simulates:

  • temperature

  • rainfall

  • relative humidity

  • dew point

  • wind speed

  • wind direction

  • solar radiation

  • evapotranspiration

Examples

if (FALSE) { # \dontrun{

stations <- create_stations(
  n = 10
)

tindex <- generate_time_index(
  start_date = "2020-01-01",
  end_date   = "2020-12-31",
  frequency  = "monthly"
)

climate <- simulate_climate(
  stations,
  tindex
)

head(climate)

} # }