genFun: Create the function from which to fit

View source: R/genFun.R

genFunR Documentation

Create the function from which to fit

Description

This function accepts some of the parameters required to fit an A/Ci curve. It also accepts a vector of forced data to fit with and generates a function that remembers which parameters are fixed

Usage

genFun(
  forceValues = c(NA, NA, NA, NA, NA, NA, NA),
  gammastar = 3.52,
  O2 = 21,
  pCi,
  assimilationData,
  tleaf = 25,
  ignoreTPU = F,
  Kc = exp(35.9774 - (80.99/(0.008314 * (273.15 + tleaf)))),
  Ko = exp(12.3772 - (23.72/(0.008314 * (273.15 + tleaf))))
)

Arguments

forceValues

A vector of forced values in order: VcMax, J, TPU, gm, Rd, aG, aS

gammastar

The Cc compensation point. Default: Tobacco.

O2

The oxygen concentration in parts per hundred.

pCi

The internal pressure of CO2

assimilationData

The measured assimilation data

tleaf

Leaf temperature in celsius

ignoreTPU

Whether to fit TPU or not. Leave false if you don't know what you're doing!

Kc

Michaelis-Menten constant for carboxylation.

Ko

Michaelis-Menten constant for oxygenation.


poales/msuRACiFit documentation built on Jan. 4, 2024, 3:57 p.m.