writeGPR: Write GPR data

writeGPRR Documentation

Write GPR data

Description

Write GPR data to a specified file format (see Details). Add automatically the file extension if missing.

Usage

writeGPR(
  x,
  fPath = NULL,
  type = c("rds", "DT1", "SGY", "ASCII", "xta", "xyza"),
  overwrite = FALSE,
  endian = .Platform$endian,
  ...
)

## S4 method for signature 'GPR'
writeGPR(
  x,
  fPath = NULL,
  type = c("rds", "DT1", "SGY", "ASCII", "xta", "xyza"),
  overwrite = FALSE,
  endian = .Platform$endian,
  ...
)

Arguments

x

Object of the class GPR or GPRsurvey

fPath

Filepath (Length-one character vector). If fPath = NULL, the file will be save in the current working directory with the name of x (name(x)) with the extension depending of type.

type

Format type. See Details.

overwrite

Boolean. If TRUE existing files will be overwritten, if FALSE an error will be thrown if the file(s) already exist(s).

Details

Modified slots

  • rds: Internal R format (useful if you aim to save your data for later processing in R).

  • DT1: Sensors & Software file format

  • ASCII: ".txt" format; write the GPR data as matrix like format with column names equal to trace position and row name equal to depth/time

  • xta: write the GPR data as a 3-column ".txt" file. The columns correspond to 1) trace position, 2) time/depth, and 3) amplitude.

  • xyza: write the GPR data as a 4-column ".txt" file. The columns correspond to 1) trace x-position, 2) trace y-position, 3) time/depth, and 4) amplitude.

See Also

readGPR


emanuelhuber/RGPR documentation built on May 13, 2024, 9:31 p.m.