gcpVector {pedometrics}R Documentation

Calculate module and azimuth

Description

This function calculates the module and azimuth of the difference on x and y coordinates between two sets of ground control points (GCP).

Usage

gcpVector(dx, dy)

Arguments

dx

Numeric vector containing the difference on the ‘x’ coordinate between two sets of GCP.

dy

Numeric vector containing the difference on the ‘y’ coordinate between two sets of GCP.

Details

This function is suited to perform calculations for topographical coordinates only. The origin is set in the y coordinate, and rotation performed clockwise.

Value

An object of the class data.frame containing the module, its square and azimuth. These three columns are named ‘module’, ‘sq.module’ and ‘azimuth’.

Note

This function was addapted from LoadData.

Author(s)

Juan Carlos Ruiz Cuetos bilba_t@hotmail.com
Maria Eugenia Polo Garcia mepolo@unex.es
Pablo Garcia Rodriguez pablogr@unex.es
Alessandro Samuel-Rosa alessandrosamuelrosa@gmail.com

References

Ruiz-Cuetos J.C., Polo M.E. and Rodriguez P.G. (2012). VecStatGraphs2D: Vector analysis using graphical and analytical methods in 2D. R package version 1.6. http://CRAN.R-project.org/package=VecStatGraphs2D

See Also

LoadData, gcpDiff

Examples


## Not run: 
gcpVector(dx = rnorm(3, 5, 10), dy = rnorm(3, 5, 10))

## End(Not run)


[Package pedometrics version 0.6-6 Index]