Description Usage Format Details Source Examples
All water chemistry data associated with the Central Sands Lakes Study from:
The Wisconsin Department of Natural Resources (DNR) Surface Water Integrated Management System (SWIMS), project "Central Sands Lake Study" or "csls".
The National Atmospheric Deposition Program (NADP) precipitation chemistry data from Devil's Lake.
Isotope measurements
HOBO continuous logger measurements
1 |
A data frame with the following columns:
name of "lake", either "Pleasant", "Long", "Plainfield", or "Precip
type of site, e.g. "lake", "precipitation", "upgradient", "nogradient", "downgradient", "deep"
unique id for CSLS site
date of measurement
DNR parameter code for analyte measured
Description of analyte measured
value of sample result
units of sample result
sample depth (m)
if sample depth is a range, deepest end of that range (m)
limit of detection for lab method
limit of quality for lab method
notes if data is flagged for being under the LOD ("LOD"), under the LOQ ("LOQ"), analyzed past the holding date ("AGE"), duplicate sample ("DUPLICATE"), blank sample ("BLANK"), other reason ("COMMENT"), bad well ("BAD_WELL") or not flagged ("NONE")
longer comment about reason for flag
Raw csv data is processed in the data-raw/
subdirectory of this
project with the functions import_isotopes
, import_NADP
,
import_SWIMS.R
, import_HOBO
, and combine_chem
which are
run by runall_cslsdata.R
.
import_isotopes
loads isotope measurements for the CSLS lakes and
extracts isotopic measurements for 18O and 2H (duterium) flagged as VALID =
TRUE.
import_NADP
loads in NADP data and cleans with the following steps:
Defines SWIMS equivalent of NADP parameters of interest
Limits only valid data to the desired site (default: Devil's Lake).
Rearranges data frame for parameters of interest
Retains any LOD flags, eliminates clearly invalid results (< 0)
Converts NADP param names to SWIMS equivalents
Add units, date, and site_id
import_SWIMS.R
loads in SWIMS data associated with the Central Sands Lakes
Study (project: "csls") and cleans with the following steps:
Transforms column names to characters that are easier to work with in R.
Imports and appends LDES data, if using.
Uses station_name and WBIC to match samples to CSLS site ids. Makes sure all samples have a CSLS site_id match.
Extracts and parses sample depth or sample depth range, where exists.
Updates column classes (to datetime, numeric, etc.)
Performs QC on results and makes note of any flagged samples
Subsets to useful columns and returns SWIMS data frame.
import_HOBO.R
loads in HOBO data for a lake, cleans up formatting and
handling of missing data, and rearranges so that information about the depth
of measurements and the parameter measured is treated as data, rather than
embedded in column names. It also merges depth information (either depth from
bottom or depth from top) with lake level information to get the elevation
above mean sea level of each sensor measurement. There is currently no
cleaning done to remove measurements when the sensor was out of the water for
downloads.
combine_chem.R
combines all water chemistry data frames, using the
dictionary and gw_levels to define site types.
https://dnr.wi.gov/topic/surfacewater/swims/
http://nadp.slh.wisc.edu/data/sites/list/?net=NTN
1 | water_chem <- CSLSdata::water_chem
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.