leahwr Posted November 27, 2017 Share Posted November 27, 2017 Hi all, I have edited twilight events from Migrate Tech tags using preprocessLight in TwGeos. I have then converted to TAGS format using the function BAStag2TAGS. I have been able to follow the workflow for GeoLight up until the function mergeSites, after this step I get the following error: "Error in solve.default(fit$hessian) :Lapack routine dgesv: system is exactly singular: U[1,1] = 0." My code up until this point looks like this: # so we have to extract twilightstw<-TAGS.twilights[TAGS.twilights$twilight>0 & TAGS.twilights$excluded==0 & TAGS.twilights$datetime<as.POSIXct("2017-06-12", tz="UTC"),] # make pairstw$datetime[tw$twilight==2]<-tw$datetime[tw$twilight==2] gl_twl<-data.frame(tFirst=tw$datetime[which(diff(tw$datetime)<20)], tSecond=tw$datetime[which(diff(tw$datetime)<20)+1], type=tw$twilight[which(diff(tw$datetime)<20)]) TAGS.twilights$datetime<-as.POSIXct(TAGS.twilights$datetime, tz="UTC", format="%Y-%m-%dT%T") cL <- changeLight(gl_twl, quantile = 0.95, days = 5)mS <- mergeSites(gl_twl, site = cL$site, degElevation = elev, distThreshold = 400) If anyone has encountered this error before and can shed light on what I am doing wrong, it would be much appreciated. Thanks, Leah Link to comment Share on other sites More sharing options...
kmancuso Posted February 6, 2019 Share Posted February 6, 2019 Hi Leah, I also have been experiencing the same error when I use the mergeSites function. I have tried with multiple different geolocator tags and keep getting the same error. Were you able to get past this error? If anyone is able to provide any suggestions on how to overcome this error that would be greatly appreciated. Thanks, Kristen Link to comment Share on other sites More sharing options...
Hannah Justen Posted October 27, 2021 Share Posted October 27, 2021 Same error here. Did either of you move past it? Link to comment Share on other sites More sharing options...
Recommended Posts