scan.txt.Renishaw {hyperSpec} | R Documentation |
import Raman measurements from Renishaw .txt file
scan.txt.Renishaw(file=stop("filename is required"), data="xyspc", nlines=0, nspc, ...)
file |
file name |
data |
type of file, one of "spc", "xyspc", "zspc", "depth", "ts", see details. |
nlines |
number of lines to read in each chunk, if 0 or less read whole file at once |
nspc |
number of spectra in the file |
... |
passed to logentry |
Renishaw .wxd files are converted to .txt ASCII files by their batch converter. They come in a "long" format with columns (y x | time | z)? wavelength intensity. The first columns depend on the data type.
The corresponding possibilities for the data
argument are:
data | columns | |
"spc" | wl int | single spectrum |
"zspc" , "depth" | z wl int | depth profile |
"ts" | t wl int | time series |
"xyspc" | y x wl int | 2d map |
This function allows reading very large ASCII files, but it does not work on files with missing
values (NA
s are allowed).
If the file is so large that it sould be read in chunks and nspc
is not given,
scan.txt.Renishaw
tries to guess it by using wc
(if installed).
the hyperSpec
object
C. Beleites
read.txt.long
, read.txt.wide
, scan