Jump to content


FlightR calibration error

  • Please log in to reply
1 reply to this topic

#1 egow

  • Society Members
  • 3 posts
  • United States

Posted 30 August 2017 - 01:55 PM

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: 


start<-as.POSIXct("2015-06-28", tz="GMT")
end<-as.POSIXct("2016-05-29", tz="GMT")
Proc.data<-get.tags.data("TAGS_024_2015_SWTH_000-b.csv", start.date=start, end.date=end)
Calibration.periods<-data.frame(calibration.start=as.POSIXct(c(NA,"2015-06-28"), tz="GMT"),
                                calibration.stop=as.POSIXct(c("2016-05-29", NA), tz="GMT"),
                                lon=-148.80441, lat=63.6520)
# create a calibration object 
Calibration<-make.calibration(Proc.data, Calibration.periods, likelihood.correction = FALSE)



#2 L Halpin

L Halpin
  • Society Members
  • 10 posts
  • Vancouver, Canada,
  • Canada

Posted 30 August 2017 - 02:48 PM

Try removing "NA" as follows




Calibration.periods<-data.frame(calibration.start = as.POSIXct(c("2015-06-28"), tz="GMT"),
                                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?

0 user(s) are reading this topic

0 members(s), 0 guests(s) and 0 anonymous member(s)