16EAGLE / moveVis

An R package providing tools to visualize movement data (e.g. from GPS tracking) and temporal changes of environmental data (e.g. from remote sensing) by creating video animations.
http://www.movevis.org
GNU General Public License v3.0
128 stars 19 forks source link

Dateline crossing #117

Open JoChambon opened 1 year ago

JoChambon commented 1 year ago

Hi,

There seems to still be issues with the dateline crossing. I tried to animate the track from one animal that crosses the dateline but received a warning message that the argument 'cross_dateline' was ignored due to CRS specification, but as far as I am aware of the CRS I specified is unprojected/geographical.

move_data <- df2move(df=data_sub_2,proj="+proj=longlat +datum=WGS84",x="lon",y="lat",time="timestamp") #track from only one animal
m <- align_move(move_data, res = 15, unit = "mins") #tracking resolution of 15mins
frames <- frames_spatial(m, cross_dateline = TRUE) #track crossing the dateline

Warning: Argument 'cross_dateline' is ignored, since the coordinate reference system of 'm' is not geographical (long/lat).
Checking temporal alignment...
Processing movement data...
Approximated animation duration: ≈ 175.28s (~2.92 minutes) at 25 fps for 4382 frames
Retrieving and compositing basemap imagery...
 |============================================================================================================================| 100% elapsed=00s  
Error in .local(x, values, ...) : the size of 'values' is not correct

Any idea where the issue might come from?

Cheers

Jo

JoChambon commented 7 months ago

Reinstalling the package from github with devtools rather than install.packages() solved this issue. devtools::install_github("16EAGLE/moveVis")