Closed bniebuhr closed 4 years ago
Hi, its a bit hard to diagnose without a small reproducible example. Could it be, that the timestamps are not ordered? If possible, could you make a small subset of the data set available (e.g., by email), that reproduces the error?
Hi, were you able to resolve this issue with your code? I am currently running into the same problem, as I rarify my data to every 24 hours and use code quite similar to yours. Any advice that you may have learned from this would be much appreciated! Thank you.
Hi @tararodkey
I guess the problem was solved when I reinstalled the amt
package. Maybe you can also try it?
If it does not work as @jmsigner wrote me a while back, maybe if you can provide a reproducible example we an test it to check the issue.
Hi @tararodkey,
one source of the problem I can think of is that after track_resample()
some tracks are left with no observations. As @bniebuhr already said, a small reproducible example of the error gives us the change to help much more efficiently.
Hello,
Thank you both for getting back to me so quickly! Unfortunately this was my first time using github to ask a question and these ended up in my spam folder. Since, I've managed to get the code to work, as Johannes suspected, one of my tracks had no observations, and was returning that error.
I will make sure in the future to give a reproducible example, and to check my spam!
Thank you so much, Tara
On Wed, Feb 23, 2022 at 1:45 AM Bernardo Brandão Niebuhr < @.***> wrote:
Hi @tararodkey https://github.com/tararodkey I guess the problem was solved when I reinstalled the amt package. Maybe you can also try it?
If it does not work as @jmsigner https://github.com/jmsigner wrote me a while back, maybe if you can provide a reproducible example we an test it to check the issue.
— Reply to this email directly, view it on GitHub https://github.com/jmsigner/amt/issues/6#issuecomment-1048517959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSTFT23DXSZXYX2Z4XS3H3U4SGARANCNFSM4JGBYDTQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
Hi!, May I ask how you solved the problem? I encountered the same issue and the data looks similar to what you described.
Cheers
Hi @DesiJJ ,
there are two potential sources of this error: 1) a track with no observations, or 2) a track with timestamps that are not in order. Feel free to send me a small data set that reproduces the error and I am happy to have a look at it.
Hello!
I am rarefying some GPS movement data to 3h fix rate, removing bursts with small numbers of locations, and calculating steps and angles, just following the same code from the vignettes and the paper. Here is is the code.
If I remove the
steps_by_burst
calculation, it runs just fine. However, when I include I got the errorError in diff_rcpp(x$x_) : negative length vectors are not allowed
. Does anyone know what might be happening?Here is the
Traceback
of the command, but I do not know if it helps...Thanks in advance!