Skip to contents

Package overview

preMetabolizer preMetabolizer-package
preMetabolizer: Prepare data for stream metabolism modeling

Data access

Download and read meteorological and hydrological data from external sources.

ncei_data()
Get data from the NCEI Data Service API
ncei_datasets()
List available NCEI datasets
ncei_stations()
Search for NCEI weather stations
ncei_bbox()
Compute a bounding box around a point
get_noaa_stations()
Get NOAA station information
closest_noaa_stations()
Find NOAA stations near a location
get_ghcnh()
Get GHCNh hourly observations
get_nasa_data()
Download NASA POWER hourly data
get_usgs_elev()
Get elevation from the USGS Elevation Point Query Service
iem_networks()
Get Iowa Environmental Mesonet network identifiers
iem_stations() iem_station()
Get Iowa Environmental Mesonet station metadata
iem_current()
Get current Iowa Environmental Mesonet observations
iem_obhistory()
Get one day of Iowa Environmental Mesonet observations
iem_daily()
Get Iowa Environmental Mesonet daily summaries
ks_meso_vars()
Fetch Kansas Mesonet variable metadata
ks_meso_timeseries()
Get Kansas Mesonet time-series data
ks_meso_stations()
Get Kansas Mesonet station information
ks_meso_station_activity()
Get Kansas Mesonet station activity
ks_meso_most_recent()
Get most recent Kansas Mesonet data timestamp
ks_meso_fw13()
Get Kansas Mesonet FW13 data
tex_meso_stations()
Get TexMesonet station information
tex_meso_current()
Get current TexMesonet data
tex_meso_timeseries()
Get recent TexMesonet time-series data
read_shp()
Read a shapefile or zipped shapefile

Chemistry calculations

Calculate dissolved gas concentrations, solubility constants, and related thermodynamic quantities.

calc_O2sat()
Calculate dissolved oxygen saturation
calc_CO2_molKg()
Calculate dissolved CO2 concentration in mol/kg
calc_CO2_mgL()
Calculate dissolved CO2 concentration in mg/L
calc_K0()
Calculate the CO2 solubility coefficient
calc_vapor_press()
Calculate water vapor pressure
xCO2_to_pCO2()
Convert CO2 mole fraction to partial pressure
pCO2_to_xCO2()
Convert CO2 partial pressure to mole fraction

Physical property calculations

Calculate water density, depth from pressure, and solar radiation.

calc_water_density()
Calculate water density
calc_water_height()
Calculate water height from pressure
calc_light()
Calculate modeled photosynthetically active radiation

Statistical utilities

Descriptive statistics and outlier detection for time series data.

calc_bin_width()
Calculate histogram bin width
calc_cv()
Calculate the coefficient of variation
calc_mode()
Calculate the mode of a vector
calc_exceedance_prob()
Calculate flow exceedance probabilities
rcpp_calc_exceedance_prob()
Calculate flow exceedance probabilities with C++
flag_z()
Flag outliers with robust Z-scores

Unit conversion

Convert between common units used in hydrology and atmospheric science.

convert_flow()
Convert stream discharge between units
convert_pressure()
Convert barometric pressure between units
correct_bp()
Correct barometric pressure for elevation change

Time utilities

Work with meteorological seasons and solar time.

get_season()
Determine the season from a date
even_timesteps()
Fill missing rows in an even time series
convert_UTC_to_solartime()
Convert UTC time to solar time
convert_solartime_to_UTC()
Convert solar time to UTC

Data

Built-in reference datasets.

french_creek
French Creek stream metabolism data
kings_discharge
Kings Creek daily water data