em38_spatial: Spatialise EM38 data

Description Usage Arguments Value Note Examples

View source: R/spatialise.R

Description

This function processes a decoded N38 record into a point spatial dataset.

Usage

1
2
em38_spatial(n38_decoded = NULL, hdop_filter = 3,
  out_mode = c("Vertical", "Horizontal"))

Arguments

n38_decoded

Nested list output by n38_decode

hdop_filter

Numeric, discard GPS data where the Horizontal Dilution of Precision is greater than this number. Defaults to 3 metres. Set to NULL to keep all readings.

out_mode

Character, em38 dipole mode. Output dataset can only contain Vertical or Horizontal data, never both.

Value

An sf data frame with sfc_POINT geometry. WGS84 projection. If the n38_decoded object contains more than one survey line, a list of sf objects is returned - one for each line.

Note

Input n38_decoded object should be of survey type 'GPS'. If not, the function will fail gracefully by returning a list of reasons why the data could not be converted to points.

Examples

1
2
3
4
data('n38_demo')
n38_chunks  <- n38_chunk(n38_demo)
n38_decoded <- n38_decode(n38_chunks)
em38_points <- em38_spatial(n38_decoded, 3, 'Vertical')

obrl-soil/em38 documentation built on Oct. 30, 2018, 3:17 p.m.