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

View source: R/trip.R

argos.sigmaR Documentation

Assign numeric values for Argos "class"

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

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



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)



Trackage/trip documentation built on July 7, 2023, 11:09 a.m.