shoreline_finder: Find closest shoreline along bearing

View source: R/shoreline_finder.R

shoreline_finderR Documentation

Find closest shoreline along bearing

Description

Find closest shoreline along bearing

Usage

shoreline_finder(
  shoreline,
  bearing,
  platform_x = -129.3720833,
  platform_y = 53.2369,
  min_km = 0.5,
  sightline_km = 50,
  verbose = TRUE,
  toplot = FALSE
)

Arguments

shoreline

An sf MULTIPOLYGON of shoreline boundaries to test.

bearing

A numeric vector of the bearings of interest, in degrees (0-360).

platform_x

Longitude of observation platform, in decimal degrees (the default pertains to Fin Island Research Station).

platform_y

Latitude to observation platform. in decimal degrees.

min_km

The minimum km to consider; this allows you to ignore shoreline within a certain distance of your platform.

sightline_km

The length of the sightline along your bearing to consider. Large numbers are safer, but could slow things down if your shoreline is complex.

verbose

Boolean: Print updates to Console?

toplot

boolean: Create diagnostic plots?

Value

Vector of coordinates of closest shoreline along bearing.


ericmkeen/suRvey documentation built on Feb. 5, 2025, 7:44 a.m.