argos.sigma: Assign numeric values for Argos "class"

Description Usage Arguments Details Value Examples

View source: R/trip.R

Description

Assign numeric values for Argos "class" by matching the levels available to given numbers. An adjustment is made to allow sigma to be specified in kilometres, and the values returned are the approximate values for longlat degrees. It is assumed that the levels are part of an "ordered" factor from least precise to most precise.

Usage

1
argos.sigma(x, sigma = c(100, 80, 50, 20, 10, 4, 2), adjust = 111.12)

Arguments

x

factor of Argos location quality "classes"

sigma

numeric values (by default in kilometres)

adjust

a numeric adjustment to convert from kms to degrees

Details

The available levels in Argos are levels=c("Z", "B", "A", "0", "1", "2", "3").

The actual sigma values given by default are (as far as can be determined) a reasonable stab at what Argos believes.

Value

Numeric values for given levels.

Examples

1
2
3
4
cls <- ordered(sample(c("Z", "B", "A", "0", "1", "2", "3"), 30,
                      replace=TRUE),
               levels=c("Z", "B", "A", "0", "1", "2", "3"))
argos.sigma(cls)

trip documentation built on March 16, 2021, 9:08 a.m.