twoStation_DOPredict: Predict a time series of dissolved oxygen concentration

Description Usage Arguments Details Value

View source: R/twostation.r

Description

Predict a time series of dissolved oxygen concentration

Usage

1
2
3
4
5
6
7
8
9
twoStation_DOPredict(
  ws,
  initial,
  times,
  params,
  data,
  dt = 1,
  method = c("euler", "lsoda")
)

Arguments

ws

A WatershedTools::Watershed() object, describing ONLY the two sites

initial

initial dissolved oxygen concentration in each station

times

The times at which to solve the system

params

a named vector of parameters; see details

data

a list of data for the ode; see details

dt

Time step for integration; only used if method == 'euler'

method

The integration method to use; default is euler

lateral

Vector of length two giving the DO concentration of lateral input (useful) if discharge varies significantly between the sites, defaults to 0

Details

Light and temperature time series will be approximated using linear interpolation at the desired time steps

params must be a vector. The indices of the vector must map to model parameters as follows; (where parameters with length two are fit per site):

data is a list of length 2 (one per site); each item is a list of (constant) data items, including the following:

Value

Time series of dissolved oxygen concentrations


mtalluto/NSmetabolism documentation built on May 3, 2021, 7:51 p.m.