mda.streams | R Documentation |
mda.streams stands for Macro Data Analysis for Streams.
For lower-level functions generic to all ScienceBase tasks, see sbtools. For higher-level functions that make it easy to use the Powell Center project data in particular, see powstreams.
Use the login_sb
command to establish session credentials for
working with ScienceBase.
Use get_scheme
and set_scheme
to see/specify
the ScienceBase scheme to use. The default is "mda_streams", but another
option is "mda_streams_dev" for trial modifications to SB.
list_sites
- lists all site IDs (e.g. "nwis_04067500")
that are currently on ScienceBase
list_datasets
- Given a site ID, returns a list of
timeseries and other datasets stored for that site
download_ts
- given a site ID and variable name, finds
and downloads the timeseries file from SB
get_watershed_WFS
- gets watershed geospatial data
get_watershed_WMS
- gets watershed geospatial data
stage_nwis_sitelist
- generate a list of site IDs that
meet data availability criteria
post_site
- given a site ID, create an SB node for the
site
post_ts
- given a data.frame with data, do a little
format checking and post those data to SB. Where would such data come from?
post_watershed
- given a vector of watershed filenames,
posts those files to SB. Where do the files come from?
build_data.R
- creates the data needed within the package
mda_helpers.R
- utilities used within the package. Includes
functions make_ts_name, parse_ts_name, make_site_name, and parse_site_name.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.