| gcpVector {pedometrics} | R Documentation |
Calculate module and azimuth
Description
Calculate the module and azimuth of the difference on x and y coordinates between two sets of ground control points (GCP). It is suited to perform calculations for topographical coordinates only. The origin is set in the y coordinate, and rotation performed clockwise.
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
A data frame containing the module, its square and azimuth. These three columns are named ‘module’, ‘sq.module’ and ‘azimuth’.
Note
This function was adapted from package's VecStatGraphs2D function 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. https://CRAN.R-project.org/package=VecStatGraphs2D.
Examples
x <- gcpVector(dx = rnorm(3, 5, 10), dy = rnorm(3, 5, 10))