Learn R Programming

lakemorpho (version 1.3.2)

lakeFetch: Function to calculate fetch along an input bearing

Description

The function calculates the maximum in lake distance of a line along an input bearing.

Usage

lakeFetch(inLakeMorpho, bearing, addLine = TRUE)

Value

Returns a numeric value indicating the length of the longest line in the lake along the input bearing. Units are the same as the input data.

Arguments

inLakeMorpho

An object of lakeMorphoClass. Output of the lakeSurroundTopo function would be appropriate as input

bearing

Numeric that indicates the bearing of the desired fetch

addLine

Boolean to determine if the selected max length line should be added to the inLakeMorpho object. Defaults to True. Note that the line is returned in the same projection as the input data.

References

Florida LAKEWATCH (2001). A Beginner's guide to water management - Lake Morphometry (2nd ed.). Gainesville: Florida LAKEWATCH, Department of Fisheries and Aquatic Sciences. Link

Examples

Run this code
data(lakes)
lakeFetch(inputLM,45)

Run the code above in your browser using DataLab