Learn R Programming

futureheatwaves (version 1.0.0)

processModel: Process valid models

Description

This function takes any models that are valid, identifies and characterizes heat waves within projections for each of its ensemble members, writes those dataframes of heat wave projections out to the user-specified output directory, and stores information about the models and grid locations.

Usage

processModel(model, global, custom, accumulators, dataDirectories)

Arguments

model
List with parsed information about the directory structure for a specific climate model from the user-specified projections directory. This list is a subset of the list generated by acquireDirectoryStructure.
global
An list object created by gen_hw_set that includes user specifications (e.g., the path to the output directory, the path to the input climate projections, the dataframe with city locations).
custom
An list object created by gen_hw_set that includes user specifications (e.g., the name of the R function to use to identify heat waves, alternative upper and lower year boundaries for the data used to de
accumulators
The closure generated by createAccumulators that allows you to append model information and grid location data as you process through models to a growing list.
dataDirectories
A list object, with two elements, one for each of the two subdirectories included in the main directory. Typically, these will be separate directories of historical and projection experiments from climate models. Each element of the list should be named w

Value

  • A list object with processed projections, as well as various other elements needed for further processing to identify heat waves.