This repository contains the R functions necessary for calculating optimal vcmax in R as first described in Smith et al. (2019) Global photosynthetic capacity is optimized to the environment. Ecology Letters 22(3): 506-517. doi: 10.1111/ele.13210. link.
The script calc_optimal_vcmax.R contains code for the optimal vcmax function.' The function will calculate optimal vcmax, optimal jmax, and the optimal jmax/vcmax ratio. The inputs required are temperature, PAR, VPD, elevation, and an estimate for the quantum efficiency of photosynthetic electron transport, and the curvature of the light response curve of photosynthetic electron transport.
Th folder functions contains the functions necessary to run the calc_optimal_vcmax.R script.
The script test_calc_optimal_vcmax.R will test the functions. It is suggested that users run this script first to ensure the function will run properly.
All function descriptions, including parameter descriptions, can be found in the script files.
Any questions or issues can be submitted via GitHub or directed to Nick Smith (nick.smith@ttu.edu).