Learn R Programming

hyperSpec (version 0.98-20140523)

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, ...)

scan.txt.Witec(file = stop("filename or connection needed"), points.per.line = NULL, lines.per.image = NULL, ..., nwl = 1024)

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
...
handed to scan
nwl
number of wavelengths, if NULL, readLines is used to determine nwl automatically.
file
filename or connection to ASCII file

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.