Learn R Programming

chillR (version 0.74)

gen_rel_change_scenario: Generates relative climate change scenarios based on extracted CMIP6 data

Description

Takes the extracted CMIP6 data and returns climate change scenarios, which can then be used to generate weather data.

Usage

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
)

Value

list of relative climate change scenarios. The list is ordered by three levels: 1) location 2) SSP_GCM and 3) timepoint of interest.

Arguments

downloaded_list

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')

years_local_weather

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.

weather_list

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.

times

numeric vector, states the future years, for which the climate change scenario should be generated. By default set to c(2050, 2085).

baseline_year_relative_change

numeric, states for which year within the downloaded CMIP6 data the relative change should be calculated. By default set to 2022.

baseline_window_width

numeric, sets the window width of the running mean calculation for the mean temperatures of the year indicated by baseline_year_relative_change.

future_window_width

numeric, sets the window width of the running mean calculation for the mean temperatures of the years indicated by times.

Author

Lars Caspersen