surveyTrack: Simulate points for a survey track

View source: R/surveyTrack.R

surveyTrackR Documentation

Simulate points for a survey track

Description

This function simulates the track points of a typical acoustic survey.

Usage

surveyTrack(breakPoints, dotDensity, dcLength, legLength)

Arguments

breakPoints

Arguments for changing the position of change for track way. See Details.

dotDensity

Density of points for tracks in dots-per-nm.

dcLength

Distance from coast in nm (nautical miles) of tracks.

legLength

Length of tracks in nm.

Details

breakpoints must be a list of 3 levels:

  • points, which indicates the latitude limits for track sections.

  • angle, indicating the angle of tracks.

  • n_tracks, how many tracks by section do you want?

Value

A data.frame with 4 columns: n, lon, lat and index.

Examples

breakPoints <- list(points = c(-4, -6, -15.4, -18.3),
                    angle = c(180, 210, 240),
                    n_tracks = c(9, 39, 18))
dotDensity  <- 0.1
dcLength    <- 5
legLength   <- 100

output <- surveyTrack(breakPoints = breakPoints, dotDensity = dotDensity,
                      dcLength = dcLength, legLength = legLength)

plot(output$lon, output$lat, pch = 19, cex = 0.1)

LuisLauM/ruisu documentation built on March 26, 2024, 8:23 a.m.