sim_pred_Kb: Predict ln(K600) as Kb-style function of discharge

View source: R/metab_sim.R

sim_pred_KbR Documentation

Predict ln(K600) as Kb-style function of discharge

Description

Uses linear interpolation among "nodes" (lnQ, lnK points) to predict daily values of the natural log of K600, based on the lnK ~ lnQ relationship specified by K600_lnQ_nodes_centers and lnK600_lnQ_nodes

Usage

sim_pred_Kb(K600_lnQ_nodes_centers, lnK600_lnQ_nodes, lnQ.daily)

Arguments

K600_lnQ_nodes_centers

data configuration argument for pool_K600='binned'. numeric vector giving the natural-log-space centers of the discharge bins. See also calc_bins

lnK600_lnQ_nodes

For a sim model with pool_K600='binned'. The values of lnK600 at each node. The default value of this spec is a function that computes lnK600s based on simulated K~Q relationships.

lnQ.daily

vector of daily values of the natural log of discharge, e.g., log(data_daily$discharge.daily)


USGS-R/streamMetabolizer documentation built on Aug. 15, 2023, 7:50 a.m.