georef: Georeferencing

georefR Documentation

Georeferencing

Description

Perform on a set of x,y coordinates (1) a translation by -cloc, then (2) a rotation by alpha (radian), and (3) a translation by creg. If creg is NULL, then creg is set equal to cloc.

Usage

georef(
  x,
  alpha = NULL,
  cloc = NULL,
  creg = NULL,
  ploc = NULL,
  preg = NULL,
  FUN = mean
)

## S4 method for signature 'GPRsurvey'
georef(
  x,
  alpha = NULL,
  cloc = NULL,
  creg = NULL,
  ploc = NULL,
  preg = NULL,
  FUN = mean
)

Arguments

x

A matrix with the first two columns corresponding to coordinates.

alpha

A length-one numeric vector corresponding to the rotation angle in radians. If alpha = NULL, alpha is estimated from the pairs of points in the local reference system (ploc) and in the regional reference system (preg).

cloc

A length-two numeric vector corresponding to the coordinate center of the local reference system

creg

A length-two numeric vector corresponding to the coordinate center of the regional reference system. Setting creg = NULL (default) is equivalent to apply a rotation of angle alpha and center cloc.

ploc

A matrix with the first two columns corresponding to coordinates in the local reference system.

preg

A matrix with the first two columns corresponding to coordinates in the regional reference system.

FUN

If alpha = NULL, a function to estimate the rotation angle from the angles computed for each pairs of coordinates of ploc-preg.


emanuelhuber/RGPR documentation built on May 13, 2024, 9:31 p.m.