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

Crossing 0 longitude #3

Closed
ryanreisinger opened this issue Feb 11, 2019 · 2 comments
Closed

Crossing 0 longitude #3

ryanreisinger opened this issue Feb 11, 2019 · 2 comments
Assignees

Comments

@ryanreisinger
Copy link

When individuals cross 0 degree longitude, the estimated locations are at -180/+180 longitude.

Fix for #2 might have caused a new issue.

[lmsa.zip](https://github.com/ianjonsen/foieGras/files/2850289/lmsa.zip)

library(foieGras)
library(dplyr)

dat <- read.csv("lmsa.csv") #in zip file attached.

output <- foieGras::fit_ssm(d = select(dat, id, date, lc, lon, lat),
                            vmax = 36,
                            min.dt = 120,
                            time.step = 2)

plot(output$ssm[[1]], est = "predicted")
@ryanreisinger
Copy link
Author

rplot

@ianjonsen ianjonsen self-assigned this Feb 14, 2019
@ianjonsen
Copy link
Owner

I've uploaded a fix that works for this track and the previous example track crossing -180/180. I've also added a lonWrap argument to the plot method where user can specify a minimum longitude for wrapping: 0 to deal with dateline issue, or -180 to deal with crossing 0,360. The default is no wrapping.

I'll leave this issue open for now, in case you run into more problems

lmsa_ex

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

2 participants