I'm trying to calibrate from a light image from a Bas tag. I get an error when I call: lightImage(d.lux, offset = offset) and twl<-preprocessLight(d.lux, threshold, offset, lmax = 64, map=TRUE)
This is the error I get:
Error in if (as.numeric(tmin) > as.numeric(date)) tmin <- tmin - 24 * :
missing value where TRUE/FALSE needed
I'm not sure why I'm getting this error. I have about 23 .lig files that give me this error. The others seem to work. When I look at the .lig files I don't see any differences between the ones that are working and the ones that are not.
Anyway to fix this? I'm not able to process the geol data without this working.
Thanks in advance.