Description Usage Arguments Value Note
This function parses the structure of the user-provided directory of climate projection files to create a list of the climate models and ensemble members included.
1 2 3 | acquireDirectoryStructure(dataFolder, coordinateFilenames, tasFilenames,
timeFilenames, models_to_run, dataDirectories, threshold_ensemble,
thresholdBoundaries)
|
dataFolder |
Character string with pathway to a directory with
climate projection data. This directory must have a specific structure–
see the |
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 |
tasFilenames |
Character string the with filename of each climate
projection file. This filename should be identical for all ensemble
member subdirectories included in the |
timeFilenames |
Character string the with filename of each projection
dates file. This filename should be identical for all ensemble
member subdirectories included in the |
models_to_run |
A character vector with either "all" (the default),
in which case the function runs through all models in the |
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 with the name of
the subdirectory and should provide a numeric vector with the starting and
ending years of the data within each of the two subdirectories (e.g.,
|
threshold_ensemble |
A character vector giving the name of the ensemble
member that should be used when determining the city-specific threshold
temperatures for each climate model (e.g., |
thresholdBoundaries |
A numeric vector with the custom time boundaries
to be used to determine the threshold variable values for the extreme event
definition. The required format for this vector is c(start year, end
year), with the restriction that bounds must be contained within the
time boundaries of one of the two experiment subdirectories specified
by the |
The function returns a list object outlining the file structure of
the dataFolder
directory.
Projection, grid locations, and projection time files within the
dataFolder
directory must be comma-separated (.csv) files and
must be named using the names specified by the arguments
coordinateFilenames
, tasFilenames
, and timeFilenames
.
See the futureheatwaves
vignette for more information about
setting up the dataFolder
directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.