Model photosynthetic rate as light saturation, carbon-dioxide availability and temperature move away from optimum.