Learn R Programming

hyperSpec (version 0.98-20140523)

read.spc.Kaiser: read Kaiser .spc files

Description

Import functions for Kaiser Optical Systems .spc files

read.spc.KaiserMap is a wrapper for read.spc.Kaiser with predefined log2data to fetch the stage position for each file.

read.spc.KaiserLowHigh is a wrapper for read.spc.Kaiser for raw data that is saved in separate files for low and high wavenumber range. The wavelength axis holds the pixel numbers, which repeat for low and high wavenumber ranges.

Usage

read.spc.Kaiser(files, ..., glob = TRUE)

read.spc.KaiserMap(files, keys.log2data = NULL, ...)

read.spc.KaiserLowHigh(files = stop("file names needed"), type = c("single", "map"), ..., glob = TRUE)

Arguments

files
If glob = TRUE, filename can contain wildcards. Thus all files matching the name pattern in filename can be specified.
glob
If TRUE the filename is interpreted as a wildcard containing file name pattern and expanded to all matching file names.
keys.log2data,...
All further arguments are handed over directly to read.spc.
type
what kind of measurement was done? If "map", read.spc.KaiserMap is used instead of read.spc.Kaiser.

Value

  • hyperSpec

Details

read.spc.Kaiser imports sets of .spc files written by Kaiser Optical Systems' Hologram software. It may also serve as an example how to write wrapper functions for read.spc to conveniently import specialized sets of .spc files.

Examples

Run this code
## for examples, please see `vignette ("fileio")`.

Run the code above in your browser using DataLab