preMetabolizer: Prepare data for stream metabolism modeling
Source:R/preMetabolizer-package.R
preMetabolizer-package.RdpreMetabolizer provides helpers for building the environmental time series commonly needed before fitting stream metabolism models. It includes tools to download external meteorological and elevation data, align irregular time series, convert hydrology and atmospheric units, calculate water and gas chemistry quantities, and assemble light and pressure inputs for streamMetabolizer.
Coordinates
Functions that require locations use latitude and longitude in decimal
degrees. Latitude ranges from -90 to 90, longitude ranges from -180 to 180,
and western longitudes are negative.
Main workflows
Find and download meteorological data with
get_noaa_stations(),closest_noaa_stations(),get_ghcnh(),ncei_data(),get_nasa_data(), andks_meso_timeseries(). Retrieve mesonet station observations withiem_networks(),iem_current(),iem_obhistory(),tex_meso_stations(),tex_meso_current(), andtex_meso_timeseries().Retrieve or calculate site context with
get_usgs_elev(),correct_bp(),convert_UTC_to_solartime(), andcalc_light().Prepare model inputs with
even_timesteps(),calc_O2sat(),calc_water_height(), and the built-in example datasets.Summarize and check data with
flag_z(),calc_exceedance_prob(),calc_cv(), andcalc_bin_width().
Built-in datasets
french_creek contains 5-minute dissolved oxygen and water temperature observations for a complete metabolism-preparation example. kings_discharge contains daily USGS discharge, gage height, and water temperature observations for flow-duration and seasonal summaries.
Author
Maintainer: Connor Brown ConnorBrown1996@gmail.com (ORCID)
Authors:
Connor Brown ConnorBrown1996@gmail.com (ORCID)