cimisannual {cimis}R Documentation

Retrieve annual data drom CIMIS

Description

Retrieves annual data from CIMIS servers. Currently only implemented for imperial units.

Usage

cimisannual(station, year, period = "daily", units = "imp", keepfile = TRUE)

Arguments

station station ID. See stnlist
year year, in quotes
period either "daily" or "hourly". Defaults to "daily".
units either "imp" for imperial or "SI" for SI. For this function in particular, only imperial is implemented.
keepfile Should the zip file be saved to current working directory? This is useful for hourly data in particular, where file size can be upwards of 20MB. Defaults to TRUE

Value

A data frame of weather data. CIMIS codes are stripped, only numeric data is retained. Dimensions depend on period. For daily data, a 365-366 x 18 data frame. For hourly data, a 8760 or 8784 x 16 data frame.

Note

Thank you to Dylan Beaudette at California Soil Resource Lab for inspiration and parsing. http://casoilresource.lawr.ucdavis.edu/drupal/node/38, http://casoilresource.lawr.ucdavis.edu/drupal/node/676

Author(s)

Greg Hirson <ghirson@ucdavis.edu>

References

http://www.cimis.water.ca.gov/cimis/welcome.jsp

See Also

cimisdaily, cimismonthly, cimishourly

Examples

#Maximum daily temperature for Davis, CA, 2005
weather = cimisannual(station = "006", year = "2005", keepfile = FALSE)
plot(weather$max_air, type = "l", xlab = "Day of Year",
   ylab = "Max. Air Temp, F", main = "Davis, CA, 2005")

[Package cimis version 0.1-3 Index]