this script now takes the modelled A from plantecophys packages, the M from yplant, and simulated leaf and calculates carbon gain in gm2 for each day of the experiment