You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?).
Checking temporal alignment...
Processing movement data...
Approximated animation duration: ≈ 16s at 25 fps for 400 frames
Retrieving and compositing basemap imagery...
Loading basemap 'world_imagery' from map service 'esri'...
|===============================================================================================================| 100% elapsed=02s
Assigning raster maps to frames...
Error in if (row1 == 1 & row2 == nrow(x) & col1 == 1 & col2 == ncol(x)) { :
missing value where TRUE/FALSE needed
The m object is a MoveStack object of 21 tracks and the col12CBx2 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).
I just met the same problem. And I fixed it after I set a coarser resolution (from 180 to 240) in the previous step:
m <- moveVis::align_move(data, res = 240, unit = "mins")
It seems like the error is caused by the NA value in temporal interpolation.
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: