get_bdepths: Interpolate observed CTD bottom depth along sampling axis

Description Usage Arguments Details Value Examples

View source: R/get_bdepths.R

Description

Interpolate observed CTD bottom depth along sampling axis

Usage

1
get_bdepths(ctd_pts, expand = 200)

Arguments

ctd_pts

data.frame of CTD station locations, see details

expand

numeric for expanding sample size of CTD points

Details

CTD station locations and bottom depths are linearly expanded for use in ctd_plot if depth soundings are not provided. This is done to create a smoother depth gradient in the contour plot. The ctd_pts data.frame must have three columns for longitude (Long), latitude (Latitude), and station name (Station).

All coordinates are assumed to be geographic decimal degrees using the WGS 1984 projection, negative longitude is west of the Prime Meridian.

Value

The expanded data.frame from ctd_pts including depth (Depth) and cumulative distance (Dist, in km) columns.

Examples

1
2
3
4
5
6
## Not run: 
dt <- as.Date('2014-04-21')
toplo <- ctd[ctd$Date %in% dt, ]
get_bdepths(toplo)

## End(Not run)

fawda123/CTDplot documentation built on Feb. 9, 2021, 2:02 p.m.