Modeling the effect of light on whole-stream respiration