contour_read: contour_read

Description Usage Arguments Examples

View source: R/read.R

Description

Read a pdf into a lines object

Usage

1
2
3
4
5
6
contour_read(
  pdf_path,
  smallest_length = 1e-05,
  grow_radius = 2,
  clean_thresh = 0.08
)

Arguments

pdf_path

file.path to input pdf

smallest_length

numeric threshold defining the smallest line-length to be returned

grow_radius

numeric value defining how much to "grow" lines prior to thinning

clean_thresh

numeric threshold defining the smallest allowable "dangle"

Examples

1
2
3
4
5
6
## Not run: 
pdf <- system.file("extdata/1835300a.pdf", package = "contour2bathy")
res <- contour_read(pdf_path = pdf)
sp::plot(res$lines)

## End(Not run)

jsta/contour2bathy documentation built on June 26, 2020, 11 a.m.