Client for programmatic access to the South Florida Water Management District's 'DBHYDRO' database at < https://www.sfwmd.gov/science-data/dbhydro>, with functions for accessing hydrologic and water quality data.
dbhydroR
provides scripted access to the South Florida Water Management District's DBHYDRO database which holds over 35 million hydrologic and water quality records from the Florida Everglades and surrounding areas.
install.packages("dbhydroR")
install.packages("devtools") # Requires RTools if using Windows
devtools::install_github("ropensci/dbhydroR")
library("dbhydroR")
Station IDs and date ranges can be viewed in the Environmental Monitoring Location Maps. Test names can be viewed in the Data Types Metadata Table.
get_wq(station_id = "FLAB08", date_min = "2011-03-01",
date_max = "2012-05-01", test_name = "CHLOROPHYLLA-SALINE")
get_wq(station_id = c("FLAB08","FLAB09"), date_min = "2011-03-01",
date_max = "2012-05-01", test_name = "CHLOROPHYLLA-SALINE")
get_wq(station_id = c("FLAB0%"), date_min = "2011-03-01",
date_max = "2012-05-01", test_name = "CHLOROPHYLLA-SALINE")
get_wq(station_id = c("FLAB08","FLAB09"), date_min = "2011-03-01",
date_max = "2012-05-01", test_name = c("CHLOROPHYLLA-SALINE",
"SALINITY"))
raw_data <- get_wq(station_id = "FLAB08", date_min = "2011-03-01",
date_max = "2012-05-01", test_name = "CHLOROPHYLLA-SALINE", raw = TRUE)
clean_wq(raw_data)
Station IDs and date ranges can be viewed in the Environmental Monitoring Location Maps.
get_dbkey(stationid = "C111%", stat = 'MEAN', category = "WQ", detail.level = "full")
get_hydro(dbkey = 38104, date_min = "2009-01-01", date_max = "2009-01-12")
get_hydro(date_min = "2013-01-01", date_max = "2013-02-02",
stationid = "JBTS", category = "WEATHER", param = "WNDS",
freq = "DA", stat = "MEAN", recorder = "CR10", agency = "WMD")
raw_data <- get_hydro(date_min = "2013-01-01", date_max = "2013-02-02",
stationid = "JBTS", category = "WEATHER", param = "WNDS",
freq = "DA", stat = "MEAN", recorder = "CR10", agency = "WMD", raw = TRUE)
clean_hydro(raw_data)
vignette("dbhydroR", package = "dbhydroR")
Please report any issues or bugs.
Get citation information for dbhydroR
in R by running citation(package = 'dbhydroR')
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms
get_hydro
causing data parsing failure in all cases (#16)get_hydro
causing data parsing failure in all casesget_dbkey
was incorrectly processing data headersget_hydro()
now resolves multiple matching of on-the-fly dbkeys to the one with the longest period of record.get_hydro()
now works if a dbkey
contains leading zeros
getwq()
, gethydro()
, and getdbkey()
are now deprecated in favor of get_wq()
, get_hydro()
, get_dbkey()
.getdbkey()
is no longer limited to < 100 resultsgetwq()
regardless of how the raw
parameter is setgetwq()
returns a no data warning even if the raw
parameter is set to TRUE
gethydro()
and getwq()
date/time stamps are now forced to the EST
timezone independently of the user environmentUTF-8
regardless of the user environmentgetdbkey()
coordinates are now in decimal degree formatgetwq()
getdbkey()
argumentsgetdbkey()
cleanwq()
gethydro()
to guess missing column names of instantaneous data