Title: | Interface to the California Data Exchange Center (CDEC) |
---|---|
Description: | Connect to the California Data Exchange Center (CDEC) Web Service <http://cdec.water.ca.gov/>. 'CDEC' provides a centralized database to store, process, and exchange real-time hydrologic information gathered by various cooperators throughout California. The 'CDEC' Web Service <http://cdec.water.ca.gov/dynamicapp/wsSensorData> provides a data download service for accessing historical records. |
Authors: | Michael Koohafkan [aut, cre] |
Maintainer: | Michael Koohafkan <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.3-1 |
Built: | 2025-01-31 04:54:50 UTC |
Source: | https://github.com/mkoohafkan/cder |
Open the data flag listing page.
cdec_data_flags(...)
cdec_data_flags(...)
... |
Additional arguments to pass to |
Open the Metadata page for a station.
cdec_meta(station, ...)
cdec_meta(station, ...)
station |
The three-letter station code. |
... |
Additional arguments to pass to |
Query data from the CDEC web services.
cdec_query(stations, sensors, durations, start.date, end.date, ...)
cdec_query(stations, sensors, durations, start.date, end.date, ...)
stations |
A vector of station codes. |
sensors |
A vector of sensor numbers. |
durations |
A vector of durations. Possible duration codes are
|
start.date |
The start date of the query. |
end.date |
The end date of the query. |
... |
Not used. |
Note that CDEC timestamps are in Pacific Time and Daylight Savings adjustments are reflected. In R, this is equivalent to the timezone "US/Pacific".
A tibble.
if(interactive()){ cdec_query("NSL", 100, "E", Sys.Date() - 5, Sys.Date()) }
if(interactive()){ cdec_query("NSL", 100, "E", Sys.Date() - 5, Sys.Date()) }
Query group data from the CDEC web services.
cdec_query_group(groups, start.date, end.date, ...)
cdec_query_group(groups, start.date, end.date, ...)
groups |
A vector of group codes. |
start.date |
The start date of the query. |
end.date |
The end date of the query. |
... |
Not used. |
Note that CDEC timestamps are in Pacific Time and Daylight Savings adjustments are reflected. In R, this is equivalent to the timezone "US/Pacific".
A tibble.
if(interactive()){ cdec_query_group("SR1", Sys.Date() - 5, Sys.Date()) }
if(interactive()){ cdec_query_group("SR1", Sys.Date() - 5, Sys.Date()) }
Open the Sensor listing page.
cdec_sensors(...)
cdec_sensors(...)
... |
Additional arguments to pass to |
CDEC Search Pages Open the CDEC station/group search page or map interface.
cdec_search_groups(...) cdec_search_stations(...) cdec_map(...)
cdec_search_groups(...) cdec_search_stations(...) cdec_map(...)
... |
Additional arguments to pass to |
cdec_search_groups()
: CDEC Group search page.
cdec_search_stations()
: CDEC Station search page.
cdec_map()
: CDEC Map locator page.
Access the CDEC Web Service from R.
cder uses the following options()
to configure behavior:
cder.timeout
: The maximum time to wait for a response
from the CDEC Web API.
Maintainer: Michael Koohafkan [email protected]
Useful links: