Learn R Programming

fb4package (version 2.0.0)

calculate_respiration: Calculate daily respiration (Mid-level - Main function)

Description

Main respiration calculation function called from simulation loop

Usage

calculate_respiration(temperature, weight, processed_respiration_params)

Value

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.

Arguments

temperature

Water temperature (°C)

weight

Fish weight (g)

processed_respiration_params

List with processed respiration parameters (includes activity params)

Examples

Run this code
# 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)

Run the code above in your browser using DataLab