Learn R Programming

pedometrics (version 0.12.1)

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

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

Run this code
# NOT RUN {
x <- gcpVector(dx = rnorm(3, 5, 10), dy = rnorm(3, 5, 10))

# }

Run the code above in your browser using DataLab