Learn R Programming

pedometrics (version 0.6-3)

gcpVector: 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.

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.

Details

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

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

Run this code
gcpVector(dx = rnorm(3, 5, 10), dy = rnorm(3, 5, 10))

Run the code above in your browser using DataLab