[AniMov] first passage time: format of coordinates

Sergio Vignali vignalisergio30 at gmail.com
Thu Jan 31 19:41:49 CET 2013


Hi,
do you usually use QGIS?
You can convert your coordinates with qgis of course!
PS I can't open your link.

Regards
2013/1/31 Santiago Guallar <sguallar a yahoo.com>

>
>  Hello,
>
>  I am trying to create a ltraj object to obtain first passage times (with
> the aim to reveal stopover sites of migratory seabirds) using package
> adehabitat, My code is:
>
>  require(adehabitat)
> Xloc$Date <- paste( Xloc$date, Xloc$hm)
> Xloc$Date <- as.POSIXct( Xloc$Date, format = "%d/%m/%Y %H:%M", tz = "GMT"
> )
> xy <- Xloc[,c("lat","long")]
> id= Xloc$ind
> tr1 <- as.ltraj( xy, Xloc$Date, id )
> F <- fpt(tr1, seq(300,1000, length=30))
> plot(F, scale = 500, warn = FALSE)
>
> However, I only obtain NAs. I think the problem lies in the format of the
> coordinates. I'm using a decimal format but function fpt() apparently works
> with UTM coordinates. How can I convert them into this format?
> Here is a link to a dput() to file tr1.txt:
>  http://file-manager.000webhost.com/file-manager/index.php
>
> Thank you for your help!
>
> Santi
>
>
>
>
> _______________________________________________
> AniMov mailing list
> AniMov a faunalia.it
> http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov
>
>


-- 
Sergio Vignali
CERM Centro Rapaci Minacciati
(Endangered Raptors Centre)
-------------- parte successiva --------------
Un allegato HTML ? stato rimosso...
URL: <http://lists.faunalia.it/pipermail/animov/attachments/20130131/77b89348/attachment.html>


More information about the AniMov mailing list