Learn R Programming

futureheatwaves (version 1.0.0)

buildStructureExperiments: Generate file structure for an experiment

Description

This function generates a list object with the file structure of files in the dataFolder directory for a single experiment (e.g., "historical" or "rcp85").

Usage

buildStructureExperiments(modelName, experiment, dataPath, coordinateFilenames,
  tasFilenames, timeFilenames, dataDirectories)

Arguments

modelName
Character string of climate model name (e.g., "bcc1"). This name is generated from the subdirectory name for the climate model within dataFolder.
experiment
Character string of the experiment. Possible variables are the names of elements in the list object specified by the dataDirectories argument in gen_hw_set.
dataPath
Character string of the file path to dataFolder. Must include the final `/`.
coordinateFilenames
Character string the with filename of each grid point location file. This filename should be identical for all ensemble member subdirectories included in the dataFolder directory. See the package vignette for an example of the required struct
tasFilenames
Character string the with filename of each climate projection file. This filename should be identical for all ensemble member subdirectories included in the dataFolder directory. See the package vignette for an example of the required structu
timeFilenames
Character string the with filename of each projection dates file. This filename should be identical for all ensemble member subdirectories included in the dataFolder directory. See the package vignette for an example of the required structur
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 with one element for each ensemble member. Each element is a return value of the buildStructureEnsembles function for one ensemble member in the experiment and climate model.