Convenience wrapper on distance_to_contour() for depth contours, the most
common use.
Arguments
- env_dat
an
sfPOINT object carrying a depth column.datamatch::attach_bathymetry()adds one, namedDEPTH.- depth
name of the depth column, as a positive magnitude
- levels
isobaths to measure to, in the units of
depth- per
distance unit for the result
Examples
if (FALSE) { # \dontrun{
bathy <- datamatch::fetch_bathymetry(bounding_box = bb)
env <- datamatch::attach_bathymetry(env, bathy, "DEPTH")
env <- distance_to_isobath(env, levels = c(50, 100, 200))
} # }