-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in frames_spatial() when creating frames for more than 20 tracks #113
Comments
I just met the same problem. And I fixed it after I set a coarser resolution (from 180 to 240) in the previous step: It seems like the error is caused by the NA value in temporal interpolation. |
Sometimes I get this error and sometimes I do not. It is unclear when it happens and when the NA appears or doesn't. More often I get a fatal R crash. |
I am getting this error and I am wondering if there has been any progress on fixing it since the last comments? |
Is there any update on this issue? I have tried to allign the data to a coarser timestep but the error persists. Sometimes the whole process works, sometimes it doesn't. It definitely seems that the error is related to the opresence of NAs but i think it is in relation to the IDs of the tracks(?). I have also noted that the creation date is always the same, Any feedback is welcome, thanks. For this MoveStack I can produce an animation:
but for this one I can't:
In this one I cannot see any NAs but i stil get the error message:
|
As a comment to my previous post, I have managed to produce the animation for those MoveStaks that didn't work earlier. Although I did not have any specific warning messages regarding the fact that some trackIDs had less than 2 points, I have filtered out from my dataframe all the IDs with less than 10 datapoints and re-run the code. This in some way solved the issue. I am not sure that having too few points for some tracks was actually causing the problems because normally moveVis gives a warning or error when some tracks are too rarefied. |
This is going to sound crazy but I haven't been able to source any solution yet. I'm having issues creating spatial frames for MoveStack objects that contain more than 20 animal tracks:
Error in if (row1 == 1 & row2 == nrow(x) & col1 == 1 & col2 == ncol(x)) { : missing value where TRUE/FALSE needed
.My code for this worked successfully not too long ago, and I'm able to create spatial frames via
frames_spatial()
with subsets that include fewer tracks using the exact same code but for some reason not the sets with 21+. I copied the code and output below, but can connect via email if you need some of the data I'm working with (or could try with large dataset from Movebank?).The
m
object is a MoveStack object of 21 tracks and thecol12CBx2
vector is just a vector of 21 colors, one for each track. Again, this exact script works just fine for subsets of the original data that include 20 or fewer tracks (with the corresponding number of path colors).Session info:
The text was updated successfully, but these errors were encountered: