Implements temperature equation 2 (Kitchell et al. 1977). With user notifications about edge cases and fallback values.
respiration_temp_eq2(temperature, RTM, RTO, RX, warn = TRUE)Temperature factor
Water temperature (deg C)
Maximum (lethal) temperature
Optimum temperature for respiration
Calculated parameter
Logical, whether to issue warnings about calculations, default TRUE
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.