getPrecipitation {CityWaterBalance}R Documentation

Assemble a precipitation times series

Description

This function retrieves monthly precipitation, minimum and maximum temperatures for a given area from PRISM model output hosted by the USGS Geo Data Portal (GDP)

Usage

getPrecipitation(start, end, geometry, att, val = NA)

Arguments

start

start date in format 'YYYY-MM-DD'

end

end date in format 'YYYY-MM-DD'

geometry

name of geometry as displayed in GDP

att

attribute of geometry as displayed in GDP

val

values of attribute as displayed in GDP

Value

monthly precipitation, averaged spatially over geometry

Examples

## Not run: 
prcp <- getPrecipitation('2010-01-01', '2010-12-31', 'sample:Counties', 'STATE',
'RI')

## End(Not run)

[Package CityWaterBalance version 0.1.0 Index]