Learn R Programming

futureheatwaves (version 1.0.0)

buildStructureEnsembles: List files for a single ensemble member

Description

This function reads through the user-specified dataFolder directory and creates a list with pathnames to all three files (projection times, grid points, and projections) for a single ensemble member.

Usage

buildStructureEnsembles(ensemblePath, coordinateFilenames, tasFilenames,
  timeFilenames, dataDirectories)

Arguments

ensemblePath
A character string that gives the absolute file path for files for an ensemble member within the user-specified projection directory (dataFolder).
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 of length 2. The first element is the name of the ensemble that was processed. The second element is a vector with the filepaths of the three files.