project.transect: project.transect

Description Usage Arguments Details Value See Also Examples

View source: R/project.transect.R

Description

Orthogonally projects x and y coordinates of replicated ADCP transects to a mean transect line.

Usage

1
project.transect(x, y, transectNames)

Arguments

x

A vector of X geographic coordinates

y

A vector of Y geographic coordinates

transectNames

A vector identifying the transect corresponding to each x and y coordinate. Individual replicates should not be identified, see 'details' for additional information.

Details

transectNames is used to group replicate transects together during processing, if each replicate has a unique name all replicates will be handled as unique transects and projected coordinates will not represent the mean transect line. If transectNames is missing, all coordinates are assumed to correspond to a single transect.

Value

A data.table of sample id, transect names, x coordinates fitted to an orthogonal plane (xProj), and y coordinates fitted to an orthogonal plane (yProj).

See Also

ortho.proj

Examples

1
2
3
4
data(vels)
plot(UTM_Y~UTM_X, vels)
mNineProject <- project.transect(vels$UTM_X, vels$UTM_Y, vels$transectName)
plot(yProj~xProj, mNineProject)

jasonfischer/rivSurveyR documentation built on May 18, 2019, 5:54 p.m.