Gets the spectrum data at a specified index.
a Spectrum instance.
an index into the data
spectral data value, or -1 for invalid