xSec: xSec

Description Usage Arguments Value See Also Examples

View source: R/xSec.R

Description

Rotates velocities to be parallel and perpendicular to a cross-section

Usage

1
xSec(ve, vn, vu, transectHeading)

Arguments

ve

Vector of east velocities within cells

vn

Vector of north velocities within cells. Must be the same length as ve.

vu

Vector of vertical velocities within cells. Must be the same length as ve.

transectHeading

Compass heading of transect, assumes transect begins at river right and heads towards river left.

Value

Returns a data.frame with compass heading of flow perpendicular to cross-section (vxHeading), compass heading of flow parallel to cross-section (vyCompassHeading), arithmetic heading of flow parallel to cross-section (vyArithmeticHeading), difference between flow perpendicular to cross-section and heading of flow within a cell (diffHeading), velocity perpendicular to cross-section (vx), and velocity parallel to cross-section where positive values indicate flow from river right to river left (vy).

See Also

transectHeading

Examples

1
2
3
4
data(cellVels)
velSub <- cellVels[transectName == "t1",,]
tHeading <- transectHeading(velSub$UTM_X_Proj, velSub$UTM_Y_Proj, velSub$Vel.E, velSub$Vel.N, velSub$cellDepth)
secondary <- xSec(velSub$Vel.E, velSub$Vel.N, velSub$Vel.up, tHeading)

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