Inputs a directory of climate projection files and, for each, identifies and characterizes heat waves for specified study locations. The definition used to identify heat waves can be customized. Heat wave characterizations include several metrics of heat wave length, intensity, and timing in the year. The heat waves that are identified can be explored using a function to apply user-created functions across all generated heat wave files.This work was supported in part by grants from the National Institute of Environmental Health Sciences (R00ES022631), the National Science Foundation (1331399), and the Colorado State University Vice President for Research.
futureheatwaves package takes a directory of climate projection files and, for each, identifies and characterizes all of a certain type of multi-day extreme events (e.g., heat waves). The definition used to identify extreme events can be customized. Characterizations include several metrics of event length, intensity, and timing in the year. The identified extreme events can be explored by applying custom functions across all generated heat wave files.
You can download the latest stable version of this package directly from CRAN:
The development version of this package can be installed directly from GitHub using
install_github from the
library(devtools)install_github("geanders/futureheatwaves", build_vignettes = TRUE)library(futureheatwaves)
Because this package includes some C++ functions, this installation from GitHub requires the compiling of some code. If you get an error when trying to install this package from GitHub, it may be because your computer lacks the required tools to compile that part of the code. In this case, you can either download and install the required tools or email me to get a source version of the code for your operating system (where the C++ code has already been compiled).
There are extensive details on using this package in the package vignette, which can be accessed once you install the package using:
A version of this vignette is also available through CRAN here.
The development version of the package also includes a vignette with details on how to prepare CMIP5 netCDF climate model output files for use with this package. If you have downloaded the development version of the package directly from GitHub, you can access that vignette with:
gen_hw_setto write files locally, the function returns
NULLrather than an error, along with a message explaining the result.
NULLand so use less memory.
read.csvto read in climate data from csv.
mean.summer.temp), so results make more sense if using the package for something other than heat waves (e.g., severe air pollution episodes)
gen_hw_setremoved to make the package more generalizable to variables other than temperature.
NumericVectorRcpp classes. This occassionally caused a crash on some operating systems related to a call to
coerceToReal. The function now passes these two integer vectors into
NEWS.mdfile to track changes to the package.