get_seafloor: Get seafloor features at a spatial point

View source: R/get_seafloor.R

get_seafloorR Documentation

Get seafloor features at a spatial point

Description

Get seafloor features at a spatial point

Usage

get_seafloor(lon, lat, seafloor, lat_range = 0.009009)

Arguments

lon

The longitude (decimal degrees; West coordinates are negative) of interest. This can be a single value or a vector of values.

lat

The latitude (decimal degrees; South coordinates are negative). This must be the same length as lon.

seafloor

A data.frame with seafloor depths; required columns are x (longitude, decimal degrees), y (latitude), and layer (with the seafloor depth).

lat_range

The range around the provided coordinate, expressed as a numeric representing degrees latitude, used to summarize seafloor features. The default represents 1 km north-south.

Value

A dataframe, with the number of rows equal to the length of lon, with the following columns:

  • z Seafloor depth nearest to the coordinate.

  • zmin Minimum seafloor depth within lat_range of the coordinate.

  • zmax Maximum seafloor depth.

  • zsd Standard deviation of seafloor depth within lat_range.


ericmkeen/shipstrike documentation built on May 21, 2023, 7:05 a.m.