bluegreen-labs / phenor

A phenology modelling framework in R
https://bluegreen-labs.github.io/phenor/
Other
44 stars 27 forks source link

Question about the error I met when fitting the SQ model #49

Open ziyuzhou0116 opened 1 year ago

ziyuzhou0116 commented 1 year ago

Hi, I tried to fit the SQ model using my own data which is in the same structure as phenocam_DB and contains no NA, but I got this error message (Error in [.data.frame(T, loc_rising) : undefined columns selected) and I didn't know how to solve. I guess perhaps something went wrong when I call function triangular_temperature_response. When I tried to fit the AT model, it worked well and didn't meet this error. So I am wondering if you have any suggestions about the potential problem in my code. Thanks.

截屏2023-06-14 下午6 05 53 截屏2023-06-14 下午6 06 38
khufkens commented 1 year ago

Check of the ranges of the parameters for the temperature function are reasonable. If their domain is too narrow you might run into problems during optimization.