RemkoDuursma / plantecophys

Analysing and Modelling Leaf Gas Exchange Data in R
http://remkoduursma.github.io/plantecophys
16 stars 7 forks source link

Problems converging with BBLeuning #2

Closed jessicaguo closed 3 years ago

jessicaguo commented 3 years ago

Hi there, I'm trying to obtain BBLeuning parameters in addition to BB and Medlyn stomatal parameters. The nls function within fitBB is not able to converge, as step sizes go below the minimum threshold. The data I'm using were collected indoors with VPD set to 1.5 kPa, so I'm suspecting that there just isn't enough VPD variability to fit the model. Does that seem about right to you? Are there other avenues I should try? Thanks! Jessica

RemkoDuursma commented 3 years ago

If you don't have much variability in VPD then the Leuning model has trouble converging because it has three parameters (and D0 is the bottleneck in case of VPD). If it works for your situation you should consider the BBOpti model since it has only 2 parameters and will 'always' converge.

jessicaguo commented 3 years ago

The BBL model is used in ED2, so I need the Leuning parameters rather than the Medlyn ones. One way other ED2 users have done this is to fix D0 to a default value, e.g., 1.67 kPa as cited in Dewar 2002.

Would it be okay to submit a PR with an option in D0 to set D0?

RemkoDuursma commented 3 years ago

That would be OK but please do so on bitbucket.org/remkoduursma/plantecophys, that is actually the main repository for this project. github is only a mirror. thanks!