Description Usage Arguments Value See Also Examples
Rotates velocities to be parallel and perpendicular to a cross-section
1 | xSec(ve, vn, vu, transectHeading)
|
ve |
Vector of east velocities within cells |
vn |
Vector of north velocities within cells. Must be the same length as |
vu |
Vector of vertical velocities within cells. Must be the same length as |
transectHeading |
Compass heading of transect, assumes transect begins at river right and heads towards river left. |
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).
transectHeading
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.