Skip to contents

Get bathymetric prediction grid corresponding to the area for a DATRASraw object using the 'marmap' package

Usage

get_bathy_grid(
  d,
  minDepth = 10,
  maxDepth = Inf,
  resolution = 2,
  maxDist = Inf,
  keep = TRUE,
  shapefile = NULL,
  select = NULL
)

Arguments

d

DATRASraw object

minDepth

Minimum depth to include

maxDepth

Maximum depth to include

resolution

grid resolution (see marmap::getNOAA.bathy)

maxDist

Do not include grid points farther than maxDist from nearest observation.

keep

Save grid on disk for fast loading next time?

shapefile

extra shapefile information to add (optional)

select

columns to extract from shapefile

Value

data.frame with depths and geographical coordinates