Skip to content
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

NA is not a valid rownumber #100

Open
jstabach opened this issue Jul 21, 2021 · 0 comments
Open

NA is not a valid rownumber #100

jstabach opened this issue Jul 21, 2021 · 0 comments

Comments

@jstabach
Copy link

I'm trying to duplicate the tutorial to animate animal locations with a dynamic background (e.g., MODIS NDVI). When I try to do so with my own data, I receive the following error when executing the frames_spatial function:

frames <- frames_spatial(m, r_list = ndvi, r_times = ndvi_times,

  •                      fade_raster = TRUE, r_type = "gradient",
    
  •                      trace_show = T, trace_colour = "white")
    

Checking temporal alignment...
Processing movement data...
Approximated animation duration: ≈ 21.12s at 25 fps for 528 frames
Assigning raster maps to frames...
Error in .local(x, ...) : NA is not a valid rownumber

I am able to create the two ancillary graphics detailed in the code (frames_graph(graph_type = "flow") and frames_graph(graph_type = "hist")) without issue. Attaching a .Rda file with sample data and a script to re-create the error I am receiving. Thanks for any thoughts/suggestions on what I'm missing.
Movement_Animation_Example.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant