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"))
point_data <- readRDS(system.file("extdata/depth_points.rds",
package = "bathytools"))
bathy_raster <- rasterise_bathy(shoreline = shoreline,
point_data = point_data, crs = 2193, res = 8)
#> Generating depth points... [2024-11-13 23:08:45]
#> Finished! [2024-11-13 23:08:45]
#> Interpolating to raster... [2024-11-13 23:08:45]
#> Adjusting depths >= 0 to -0.82 m
#> Finished! [2024-11-13 23:08:46]
shoreline2 <- get_shoreline(bathy_raster = bathy_raster)