spcreadr
Purpose
Reads a Galactic SPC file.
Synopsis
x = spcreadr(filename,subs,wlrange)
[data,xaxis,auditlog] = spcreadr(filename,subs,wlrange)
Description
SPCREADR
reads a Galactic SPC file.
INPUT:
filename
= text string with the name of the SPC file.
OPTIONAL INPUTS:
subs = [], scalar or vector indicating the sub-files to
read, e.g. [3] reads sub-file 3, [3:9] reads sub-files 3 to 9, {default reads
all sub-files} and
wlrange = [],
two element vector (inclusive endpoints) of the wavelength range to return
{default returns the entire wavelength range}.
OUTPUTS:
x = a dataset object containing the spectrum, or
data = a data array with measured intensities,
xaxis
= vector containing the wavelength axis, and
auditlog
= char array with the log from the file.
See Also
areadr, xclgetdata, xclputdata, xclreadr