Find, Characterize, and Explore Extreme Events in Climate Projections

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.


The futureheatwaves package takes a directory of climate projection files and, for each, identifies and characterizes all heat waves. The definition used to identify heat waves can be customized. Characterizations include several metrics of heat wave length, intensity, and timing in the year. Heat waves can be explored by applying custom functions across all generated heat wave files.

Installing

The development version of this package can be installed directly from GitHub using install_github from the devtools package:

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

Using the package

There are extensive details on using this package in the package vignette, which can be accessed once you install the package using:

vignette("futureheatwaves")

An uncompiled version of the vignette can be found, without having to install the package, here.

News

futureheatwaves 1.0.1

  • Fixed a bug in the C++ function to identify heatwaves. Originally, this function passed two integer vectors into NumericVector Rcpp 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 IntegerVector Rcpp classes.
  • Added a NEWS.md file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("futureheatwaves")

1.0.3 by Brooke Anderson, 4 months ago


Browse source code at https://github.com/cran/futureheatwaves


Authors: Brooke Anderson [aut, cre], Colin Eason [aut], Elizabeth Barnes [aut]


Documentation:   PDF Manual  


GPL-2 license


Imports data.table, dplyr, ggplot2, ggthemes, leaflet, Rcpp, stringr, tidyr

Suggests gridExtra, knitr, mapproj, maps, rmarkdown, testthat, weathermetrics

Linking to Rcpp


See at CRAN