cimismonthly {cimis} | R Documentation |
Retrieves monthly data from CIMIS servers.
cimismonthly(station, month, period = "daily", units = "imp", keepfile = TRUE)
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 |
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.
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
Greg Hirson <ghirson@ucdavis.edu>
http://www.cimis.water.ca.gov/cimis/welcome.jsp
cimisdaily
, cimisannual
, cimishourly
##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")