Search the stations in the CDEC system using the CDEC Station Search service here. Combinations of these parameters can be supplied to refine or be left out to generalize, at least one must be supplied.

cdec_stations(
  station_id = NULL,
  nearby_city = NULL,
  river_basin = NULL,
  hydro_area = NULL,
  county = NULL
)

Arguments

station_id

string three letter station code

nearby_city

string search stations near supplied city

river_basin

string search stations in supplied basin

hydro_area

string search stations in supplied hydrological area

county

string search stations in supplied county

Value

data frame with queried stations as rows and columns describing the station_id, name, river_basin, county, longitude, latitude, elevation, operator, and state

Examples

# cdec_stations() can be used to find locations within an area of interest
if (FALSE) {
cdec_stations(county = "alameda")
}
# or it can be used to get metadata attributes for a location
if (FALSE) {
cdec_stations(station_id = "ccr")
}