readArgos(x, correct.all = TRUE, dtFormat = "%Y-%m-%d %H:%M:%S", tz = "GMT", duplicateTimes.eps = 0.01, p4 = "+proj=longlat +ellps=WGS84", verbose = FALSE)
readDiag(x)
readArgos
returns a trip
object, if all goes well, or simply a
SpatialPointsDataFrame
.readDiag
returns a data.frame
with 8 columns:
lon1
,lat1
first pair of coordinates
lon1
,lat1
second pair of coordinates
readArgos
performs basic validation checks for class trip
are
made, and enforced based on correct.all
:No duplicate records in the data, these are simply removed. Records are ordered by DateTime ("date", "time", "gmt") within ID ("ptt"). No duplicate DateTime values within ID are allowed: to enforce this the time values are moved forward by one second - this is done recursively and is not robust.
If validation fails the function will return a
SpatialPointsDataFrame
. Files that are not obviously of
the required format are skipped.
Argos location quality data "class" are ordered, assuming that the available
levels is levels=c("Z", "B", "A", "0", "1", "2", "3")
.
A projection string is added to the data, assuming the PROJ.4 longlat - if any longitudes are greater than 360 the PROJ.4 argument "+over" is added.
readDiag
simply builds a data.frame
.
trip
, SpatialPointsDataFrame
,
adjust.duplicateTimes
, for manipulating these data, and
argos.sigma
for relating a numeric value to Argos quality
"classes".sepIdGaps
for splitting the IDs in these data on some minimum
gap.
order
, duplicated
, , ordered
for
general manipulation of this type.