Skip to contents

Obtain database information

Functions for finding out what’s in the database

hydstra

get_groups()
Get Hydstra groups sites belong to.
get_sites_by_datasource()
Gets sites that have a given datasource
get_datasources_by_site()
Gets the available datasources for each site

KiWIS

getGroupList()
Gets groups in the database
getStationList()
getStationList API call to Kisters KiWIS API
getParameterList()
Interface to the getParameterList function

Query data available at a gauge

Functions for querying variables and times available at gauges

hydstra

get_variable_list()
Gets the variables available for sites and datasources

KiWIS

getTimeseriesList()
Get the list of timeseries available

Pull timeseries

Functions to pull timeseries of variables at gauges

hydstra

get_ts_traces()
Gets timeseries for sites and variables

KiWIS

getTimeseriesValues()
Get timeseries from Kiwis (BOM)

Wrappers and helpers

fetch_hydstra_timeseries()
Wrapper for Hydstra/hydllp to find and return desired timeseries
fetch_kiwis_timeseries()
Wrapper for Kiwis to find and return desired timeseries
fetch_timeseries()
Fetch timeseries across formats

Other helpers

Assorted useful helper functions

fetch_from_table()
Fetches timeseries from a table of arguments
find_hydstra_request()
Get a set of requests to make from hydstra
find_ts_id()
Helper to extract ts_id for desired variables from getTimeseriesList()
parse_url()
Returns the base of the request URL given state name
plot_datasources_by_site()
Plot heatmap of which sites have which datasource
send_to_type()
Make a common request format to either kiwis or hydstra