View source: R/02-respiration.R
| calculate_respiration | R Documentation |
Main respiration calculation function called from simulation loop
calculate_respiration(temperature, weight, processed_respiration_params)
temperature |
Water temperature (°C) |
weight |
Fish weight (g) |
processed_respiration_params |
List with processed respiration parameters (includes activity params) |
A positive numeric scalar giving the daily specific respiration rate
in g O_2 per g fish per day. Returns 0.000001 as a minimum
safety floor when the result is non-finite or non-positive (e.g. at or
above the lethal temperature RTM). The value accounts for both the
temperature-dependence function (REQ 1 or 2) and the activity multiplier.
# REQ 2: Kitchell et al. (1977) temperature dependence
params <- list(REQ = 2, RA = 0.0033, RB = -0.227,
RTM = 30, RTO = 18, RX = 0.5, ACT = 1.5)
calculate_respiration(temperature = 15, weight = 100,
processed_respiration_params = params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.