Learn R Programming

hyperSpec (version 0.98-20150304)

scan.dat.Witec: File Import Witec Raman

Description

Import Raman Spectra/Maps from Witec Instrument via ASCII files

Usage

scan.dat.Witec(filex = stop("filename or connection needed"), filey = sub("-x", "-y", filex), points.per.line = NULL, lines.per.image = NULL, ..., quiet = hy.getOption("debuglevel") < 1L)
scan.txt.Witec(file = stop("filename or connection needed"), points.per.line = NULL, lines.per.image = NULL, nwl = 1024, remove.zerospc = TRUE, ...)

Arguments

filex
filename wavelength axis file
filey
filename intensity file
points.per.line
number of spectra in x direction of the map
lines.per.image
number of spectra in y direction
...,quiet
handed to scan
file
filename or connection to ASCII file
nwl
number of wavelengths, if NULL, readLines is used to determine nwl automatically.
remove.zerospc
WiTEC Control saves spectra consisting of zeros only if e.g. a map was aborted. The default is to remove these spectra.

Value

a hyperSpec object

Details

scan.dat.Witec reads Witec's ASCII exported data which comes in separate files with x and y data. scan.txt.Witec reads Witec ASCII files where the first column gives the wavelength axes and the other columns the spectra.

See Also

vignette ("fileio") for more information on file import and

options for details on options.