Learn R Programming

fb4package (version 2.0.0)

respiration_temp_eq2: Temperature function for respiration - Equation 2 (Low-level)

Description

Implements temperature equation 2 (Kitchell et al. 1977). With user notifications about edge cases and fallback values.

Usage

respiration_temp_eq2(temperature, RTM, RTO, RX, warn = TRUE)

Value

Temperature factor

Arguments

temperature

Water temperature (deg C)

RTM

Maximum (lethal) temperature

RTO

Optimum temperature for respiration

RX

Calculated parameter

warn

Logical, whether to issue warnings about calculations, default TRUE

Details

This function calculates temperature effects on respiration using: V = (RTM - temperature) / (RTM - RTO) ft = V^RX × exp(RX × (1 - V))

Special cases: - When temperature >= RTM: returns 0.000001 (lethal temperature) - When ft < 0: returns 0.000001 (mathematical protection)

Note: Negative values can occur with certain RX parameters, hence the minimum bound.