seanmcm / RDendrom

R package for analysis, diagnostics, and presentation of intra-annual tree growth time series
1 stars 0 forks source link

Error get.optimized.dendro #6

Closed jess-shue closed 2 years ago

jess-shue commented 2 years ago

The TEMPEST data did not include 'Skip', 'Adjust', and 'Remove' columns, so I've added those and set them all = 0. Now, get.optimized.dendro is giving this error: Error in optimize(.difdendro, interval = c(0, dbh1 + 2 * gw2), gw2 = gw2, : invalid 'xmin' value

I've looked into the DENDRO_BASE_FUNCTIONS for .difdendro, but I'm not sure how to fix the problem.

seanmcm commented 2 years ago

look for a minimum evaluator min(). it’s getting something it can’t evaluate. an na or nan. i’ll look at this tomorrow.