Takes the extracted CMIP6 data and returns climate change scenarios, which can then be used to generate weather data.
gen_rel_change_scenario(
downloaded_list,
years_local_weather,
weather_list = NULL,
times = c(2050, 2085),
baseline_year_relative_change = 2022,
baseline_window_width = 15,
future_window_width = 31
)
list of relative climate change scenarios. The list is ordered by three levels: 1) location 2) SSP_GCM and 3) timepoint of interest.
list of data.frames, generated using the extract_cmip6_data function. Elements are named after the shared socioeconomic pathway ('SSP') and global climate model ('GCM')
by default set to NULL. If provided, this states the earliest and latest baseline year for which the relative scenario should be generated. The same values will be used for all weather stations in this case. Either years_local_weather or weather_list needs to be provided.
by default set to NULL. If provided, should be a list of data.frames containing the locally observed weather. This is used to determine the earliest and latest years for which we have observations.
numeric vector, states the future years, for which the climate change scenario should be generated. By default set to c(2050, 2085).
numeric, states for which year within the downloaded CMIP6 data the relative change should be calculated. By default set to 2022.
numeric, sets the window width of the running mean calculation for the mean temperatures of the year indicated by baseline_year_relative_change.
numeric, sets the window width of the running mean calculation for the mean temperatures of the years indicated by times.
Lars Caspersen