Comments (4)
Hi, the default interpolation method used by align_move
is greatcircle
which cannot be used with tracks not projected as lat/lon. Thus, if you want to use greatcricle
, you could first align your data and then reproject them:
library(moveVis)
library(move)
df <- read.csv("dev/user_data/test_file.txt", sep = ";", stringsAsFactors = F)
df$Local <- as.POSIXct(df$Local)
move_data <- df2move(df, x = "long", y = "lat", proj = crs("+init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"),
time = "Local", track_id= "name")
move_data <- align_move(move_data, res = 60, digit = "mean", unit = "mins")
move_data <- sp::spTransform(move_data, crs("+proj=utm +zone=33 +south +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0 "))
To stick to the order you applied, you need to switch spaceMethod
to euclidean
:
library(moveVis)
library(move)
df <- read.csv("dev/user_data/test_file.txt", sep = ";", stringsAsFactors = F)
df$Local <- as.POSIXct(df$Local)
move_data <- df2move(df, x = "long", y = "lat", proj = crs("+init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"),
time = "Local", track_id= "name")
move_data <- sp::spTransform(move_data, crs("+proj=utm +zone=33 +south +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0 "))
move_data <- align_move(move_data, res = 60, digit = "mean", unit = "mins",
spaceMethod = "euclidean")
I hope this helps. I will replace the current error message with something pointing the user towards changing spaceMethod
.
from movevis.
from movevis.
Hi all,
I'm also working with my own dataset (in LongLat format) and I'm getting a similar error message when trying to align my movement data with align_move(). My code is as following:
R.move<-move(as.numeric(R.ready$Longitude.decimal),as.numeric(R.ready$Latitude.decimal),
time = R.ready$Timestamp.1,
proj="+init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0")
unique(timestamps(R.move))
timeLag(R.move,unit="mins")
m<-align_move(R.move, res = 1200, unit = "mins")
When I run this i get the following Error message:
Error in .pointsToMatrix(p1) : latitude > 90
In addition: Warning message:
In .pointsToMatrix(p1) : longitude > 180
Cannot figure out what is wrong here. Hope you can help me. See the data attached.
Many thanks in advance!
Matteo
from movevis.
please see #69
from movevis.
Related Issues (20)
- spaceMethod error
- Only MapBox satellite basemap is working (I already tried the solutions previously posted). HOT 3
- Custom Imagery Raster Plotting
- the coordinate reference system of 'm' is not geographical (long/lat)
- Possible to overlay tracks on top of special features (e.g. polygons)?
- align_move suddenly throws error HOT 1
- Change to new cran checks badge URL HOT 1
- error in frames_spatial() when creating frames for more than 20 tracks HOT 3
- `align_move` does not preserve data (colour) column HOT 2
- osm maps dont load
- animate_frames() `end_pause` broken HOT 1
- Dateline crossing HOT 1
- frames_spatial() cropping issue? HOT 1
- Error creating animation: Error in .x[["expr"]][[i]]: subscript out of bounds HOT 5
- Basemap are not correctly rendered HOT 12
- Error message: there is no package called βmoveVisβ
- Fatal Error from frame_spatial HOT 6
- namespace:terra issue
- Categorical raster not displaying properly
- crossing dateline issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from movevis.