cimismonthly {cimis}R Documentation

Retrieve monthly data from CIMIS

Description

Retrieves monthly data from CIMIS servers.

Usage

cimismonthly(station, month, period = "daily", units = "imp", keepfile = TRUE)

Arguments

station station ID. See stnlist
month month, in quotes. All lower case, of the form jan, feb, mar, ...
period either "daily" or "hourly". Defaults to "daily".
units either "imp" for imperial or "SI" for SI.
keepfile Should the zip file be saved to current working directory? This is useful for annual 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 28-31 x 18 data frame. For hourly data, a (28-31)*24 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, cimisannual, cimishourly

Examples

##Feburary dew point in Davis, CA
weather = cimismonthly(station = "006", month = "feb", period = "daily",
   keepfile = FALSE)
plot(dew_pt~datetime, data= weather, pch = 19, type = "o",
   xlab = "Date", ylab = "Dew Point, F",
   main = "February dew point, Davis, CA")

[Package cimis version 0.1-3 Index]