Learn R Programming

futureheatwaves (version 1.0.0)

readtas: Read climate projection data

Description

This function reads climate projection data for a climate model into R from a locally-stored comma-separated file located within the directory specified by the dataFolder argument of gen_hw_set.

Usage

readtas(ensemble, global)

Arguments

ensemble
Character vector that includes the file paths to (1) the latitude and longitude file; (2) the climate projection file; and (3) the projection dates file for the selected climate model.
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).

Value

  • A dataframe of climate projection data where each column corresponds to a climate model grid point and each row corresponds to a date of observation.