R/DEPRECATED-read.spe.R
DEPRECATED-read.spe.xml.Rd
These data input functions are deprecated and they will be removed in the next release of hyperspec package. Now functions in package hySpc.read.spe (link) should be used as the alternatives.
Old description:
The new SPE file format, introduced in 2012, was designed to be backwards compatible with the previous format 2.5. The most prominent change is the new plain text XML footer holding vast experimental metadata that gets attached at the end of the file. Thus, the file contains 3 blocks: a 4100-bytes long binary header, a chunk with spectral data, and the XML footer. This function retrieves the XML footer converted to R list, and throws error if it is not available. The file format specification is available at Princeton Instruments FTP server under name 'SPE 3.0 File Format Specification'.
This function relies on R package xml2 to work correctly
.read.spe.xml(filename)
SPE filename
xml data from the file converted to R list