Description Usage Arguments Value Examples
View source: R/transectHeading.R
Determines the compass heading of a cross-section transect, assuming transect starts at river right
1 | transectHeading(x, y, velE, velN, depth, flowHeading)
|
x |
A vector of x coordinates. |
y |
A vector of y coordinates. Must be the same length as |
velE |
A vector of velocities to the east. Must be the same length as |
velN |
A vector of velocities to the north. Must be the same length as |
depth |
A vector of water depths. Must be the same length as |
flowHeading |
Optional. Mean direction of flow over the cross-section. If provided velE, velN, and depth may be omitted. |
Returns the compass heading of a transect
1 2 3 4 5 | data(vels)
velSub <- vels[transectName == "t1",,]
transectHeading(velSub$UTM_X_Proj, velSub$UTM_Y_Proj, velSub$Mean.Vel.E, velSub$Mean.Vel.N, velSub$depth)
#If flow heading is known
transectHeading(velSub$UTM_X_Proj, velSub$UTM_Y_Proj, flowHeading = 149)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.