Learn R Programming

prism (version 0.1.0)

get_prism_normals: Download data for 30 year normals of climate variables

Description

Download data from the prism project for 30 year normals at 4km or 800m grid cell resolution for precipitation, mean, min and max temperature

Usage

get_prism_normals(type, resolution, mon = NULL, annual = FALSE,
  keepZip = TRUE)

Arguments

type

The type of data to download, must be "ppt", "tmean", "tmin", or "tmax". Note that tmean == mean(tmin, tmax).

resolution

The spatial resolution of the data, must be either "4km" or "800m".

mon

a numeric value for month, can be a numeric vector of months.

annual

if TRUE download annual data

keepZip

if TRUE, leave the downloaded zip files in your 'prism.path', if FALSE, they will be deleted

Details

You must make sure that you have set up a valid download directory. This must be set as options(prism.path = "YOURPATH")

Examples

Run this code
# NOT RUN {
### Get 30 year normal values for rainfall
get_prism_normals(type="ppt",resolution = "4km",mon = 1, keepZip=FALSE)

# }

Run the code above in your browser using DataLab