Get the shoreline from a bathymetric raster
get_shoreline.Rd
Get the shoreline from a bathymetric raster
Examples
shoreline <- readRDS(system.file("extdata/rotoma_shoreline.rds",
package = "bathytools"))
depth_points <- readRDS(system.file("extdata/depth_points.rds",
package = "bathytools"))
bathy_raster <- rasterise_bathy(shoreline = shoreline,
depth_points = depth_points, crs = 2193, res = 8)
#> Generating depth points... [2025-09-18 00:06:51]
#> Finished! [2025-09-18 00:06:51]
#> Interpolating to raster... [2025-09-18 00:06:51]
#> Adjusting depths >= 0 to -0.81 m
#> Finished! [2025-09-18 00:07:09]
shoreline2 <- get_shoreline(bathy_raster = bathy_raster)