Jump to content
Ornithology Exchange
  • 0
andyjboyce

FlightR Troubleshooting

Question

Hello all,

 

I am having an issue generating the prerun object for FlightR analyses.

 

The first signs of trouble occur when running "make.calibration", I get the following warnings:

 
[68] WARNING: Warning in log(cur.slope$slope) : NaNs produced
Warning in log(All.slopes$Slopes$Slope) : NaNs produced
 
Then, when attempting to generate the prerun object, I get: 
[69] ERROR: invalid subscript type 'list'
 
Given the error, I assume this is something silly, but I would greatly appreciate any help that anyone could provide. 
 
Here is the last line of code:
 
all.in
 
Thank you!
Andy Boyce
 
 
 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Here is the code leading up to the error(s):

 

fr
write.csv(fr, file = "tags_data.csv")
 
Proc.data
 
Calibration.periods
        calibration.start=as.POSIXct("2015-07-05"),
        calibration.stop=as.POSIXct("2015-07-25"),
        lon=-108.23, lat=37.58) 
#use c() also for the geographic coordinates, -108.23, 37.58 
#if you have more than one calibration location
# (e. g.,  lon=c(5.43, 6.00), lat=c(52.93,52.94))
print(Calibration.periods)
 
Calibration
plot_slopes_by_location(Proc.data=Proc.data, location=c(-108.23, 37.58))
 
Grid
   distance.from.land.allowed.to.use=c(-Inf, Inf),
   distance.from.land.allowed.to.stay=c(-Inf, Inf))

Share this post


Link to post
Share on other sites
  • 0

 Hi Andy,

 Could you please save image and send it to me? I will have a look then, Should be something simple, but I do not see it from the code.

save.image('tmp.RData') 

   Eldar

Share this post


Link to post
Share on other sites
  • 0

  That was not an easy one. You had NAs in gl_twl, so somehow you created them there...

 I have updated FLightR, so now it will recognise the issue and will warn you at the import functions. The latest version is on GitHub.

  Hope it helps

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×