egow Posted August 30, 2017 Share Posted August 30, 2017 I'm working on calibrating some data in FlightR but I keep getting an error with the "make.calibration" object and am not sure how to fix it? The error is: Error in Twilight.time.mat.Calib.dawn[-25, ] : incorrect number of dimensions Here is my code: startend Proc.data Calibration.periods calibration.stop=as.POSIXct(c("2016-05-29", NA), tz="GMT"), lon=-148.80441, lat=63.6520) print(Calibration.periods) # create a calibration object Calibration Link to comment Share on other sites More sharing options...
L Halpin Posted August 30, 2017 Share Posted August 30, 2017 Try removing "NA" as follows Calibration.periods calibration.stop = as.POSIXct(c("2016-05-29"), tz="GMT"), lon=-148.80441, lat=63.6520) But your dates look wrong. Are you sure you want to add a year's worth of calibration data? Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2017 Share Posted December 19, 2017 Can you let me know how you solved this error? I'm getting the same thing while trying to calibrate my data: Calibration.periods calibration.stop=as.POSIXct("2014-07-11"), lon=-64.3431, lat=45.8980) #works fine calibration.parameters model.ageing=F, log.light.borders=log(c(2, 63)), log.irrad.borders=c(-1000, 1000)) #receive error: Error in Twilight.time.mat.Calib.dawn[-25, ] : incorrect number of dimensions My data is as follows (I used GeoLight2TAGS to get after defining sunrise/sunsets): head(TAGSbank066) datetime light twilight interp excluded 1 2013-07-05T12:37:59.000Z 64 0 FALSE FALSE 2 2013-07-05T12:39:59.000Z 64 0 FALSE FALSE 3 2013-07-05T12:41:59.000Z 3 0 FALSE FALSE 4 2013-07-05T12:43:59.000Z 3 0 FALSE FALSE 5 2013-07-05T12:45:59.000Z 5 0 FALSE FALSE 6 2013-07-05T12:47:59.000Z 7 0 FALSE FALSE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.