Skip to content

About

Prepare Canadian historic and projected climate data for use with LandR.CS and fireSense

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

title canClimateData Manual
subtitle v.1.1.1
date Last updated: 2026-11-05
output
bookdown::html_document2
toc toc_float theme number_sections df_print keep_md
true
true
sandstone
false
paged
true
editor_options
chunk_output_type bibliography
console
citations/references_canClimateData.bib
citation-style citations/ecology-letters.csl
link-citations true
always_allow_html true

(ref:canClimateData) canClimateData

made-with-Markdown

canClimateData module

Authors:

Ian Eddy ian.eddy@nrcan-rncan.gc.ca [aut], Alex M Chubaty achubaty@for-cast.ca [aut, cre], Eliot McIntire eliot.mcintire@nrcan-rncan.gc.ca [aut], Tati Micheletti tati.micheletti@gmail.com [ctb]

Module Overview

Module summary

Prepare Canadian historic and projected climate data for use with LandR.CS and fireSense.

Historical and projected climate data were generated using the climateData package, which provides wrappers for calling ClimateNA [@Wang2016] to generate the climate data on a local machine. These datasets were then archived and uploaded to Google Drive, and an SQLite database (shipped with the package) is used to record which datasets are available, and how to retrieve them.

Currently supports study areas across Canada, for some CMIP6 climate scenarios (see below).

Available data sets:

## historic data
available("historical")[["years"]]
##   [1] 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915
##  [16] 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930
##  [31] 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945
##  [46] 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960
##  [61] 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975
##  [76] 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990
##  [91] 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005
## [106] 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
## [121] 2021 2022 2023 2024
available("historical_normals")[["periods"]]
## [1] "1901_1930" "1911_1940" "1921_1950" "1931_1960" "1941_1970" "1951_1980"
## [7] "1971_2000" "1981_2010" "1991_2020"
## future climate scenarios
available("future")[["gcms"]]
## [1] "CanESM5"     "CNRM-ESM2-1"
available("future")[["ssps"]]
## [1] "245" "370" "585"

Additional data sets will be added in the future, although users can prepare other scenarios not included here using the scripts in the climateData package.

See the following for climate scenario exploration / comparison:

Module inputs and parameters

Input objects

Table @ref(tab:moduleInputs-canClimateData) shows the full list of module inputs.

See ?climateData::prepClimateLayers for examples constructing a custom climateVariables object to use to add arbitrary climate variables to the output lists of climate rasters.

(\#tab:moduleInputs-canClimateData)(\#tab:moduleInputs-canClimateData)List of (ref:canClimateData) input objects and their description.
objectName objectClass desc sourceURL
climateVariables list a list, named by climate variable using `'projected_'` or `'historical_'` prefixes, with each list element containing a list of three arguments: `vars` - the raw variables used to derive the target variable; `fun` - the quoted function used to derive the target variable, where `'quote(calcAsIs)'` denotes target variables that ARE the raw variable; and `dots` - additional arguments passed to `fun`. See `.inputObjects` for examples of how to build this object, and `?climateData::prepClimateLayers` for how it is used. The GCM, SSP, and selected years, whether projected or historical, are set by module parameters and must be identical for all variables. See also <https://climatena.ca/Help2#_var> for all available climate variables. NA
rasterToMatch SpatRaster template raster corresponding to `studyArea`. NA
studyArea sf study area used for simulation (buffered to mitigate edge effects) NA

Parameters

Table @ref(tab:moduleParams-canClimateData) shows the full list of module parameters.

(\#tab:moduleParams-canClimateData)(\#tab:moduleParams-canClimateData)List of (ref:canClimateData) parameters and their description.
paramName paramClass default min max paramDesc cacheKey
bufferDist numeric 20000 NA NA Distance (m) to buffer `studyArea` and `rasterToMatch` to mitigate edge effects for simulation. TRUE
climateGCM character CNRM-ESM2-1 NA NA Global Circulation Model to use for climate projections: currently 'CanESM5' or 'CNRM-ESM2-1'. TRUE
climateSSP numeric 370 NA NA SSP emissions scenario for `climateGCM`: one of 245, 370, or 585. TRUE
historicalClimatePeriod character 1951_198.... NA NA period to use for historical climate normals if `climateVariables` not supplied. TRUE
historicalClimateYears numeric 1991, 19.... NA NA range of years captured by the historical climate data if `climateVariables` not supplied. TRUE
outputDir character NA NA NA Directory path for prepared climate data rasters. User should specify a shared directory (e.g., when running multiple simulation replicates) to avoid multiple copies of the climate data. If not specified by the user, a subdirectory of the simulation output directory will be used (i.e., `file.path(outputPath(sim), 'climate')`. TRUE
projectedClimatePeriod character NA NA period to use for projected climate normals if `climateVariables` not supplied. TRUE
projectedClimateYears numeric 2011, 20.... NA NA range of years captured by the projected climate data if `climateVariables` not supplied. TRUE
projectedType character forecast NA NA one of 'forecast' or 'hindcast' to prepare either projected future, or sampled historical data for hindcast studies, respectively. TRUE
quickCheck logical TRUE NA NA `prepClimateData` uses `prepInputs` internally; set this to `TRUE` to avoid the slow process of digesting potentially MANY files. This will use `file.size` only, if `TRUE`. TRUE
.studyAreaName character NA NA NA User-defined label for the current study area. If `NA`, a hash of `studyArea` will be used. TRUE
.plotInitialTime numeric NA NA NA Describes the simulation time at which the first plot event should occur. TRUE
.plotInterval numeric NA NA NA Describes the simulation time interval between plot events. TRUE
.saveInitialTime numeric NA NA NA Describes the simulation time at which the first save event should occur. TRUE
.saveInterval numeric NA NA NA This describes the simulation time interval between save events. TRUE
.useCache logical FALSE NA NA Should this entire module be run with caching activated? This is generally intended for data-type modules, where stochasticity and time are not relevant. TRUE

Events

This module consists of a single init event that performs all data preparation.

Module outputs

Description of the module outputs (Table @ref(tab:moduleOutputs-canClimateData)).

(\#tab:moduleOutputs-canClimateData)(\#tab:moduleOutputs-canClimateData)List of (ref:canClimateData) outputs and their description.
objectName objectClass desc
historicalClimateRasters list list of a single raster stack - historical MDC calculated from ClimateNA data
projectedClimateRasters list list of a single raster stack - projected MDC calculated from ClimateNA data

Links to other modules

Originally developed to provide inputs to gmcsDataPrep (for use with climate-sensitive LandR Biomass projections; see Biomass_core) and the fireSense suite of modules.

Getting help

https://github.com/PredictiveEcology/canClimateData/issues

References

About

Prepare Canadian historic and projected climate data for use with LandR.CS and fireSense

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages