It may be tricky to use that routine on a spectral library since it was designed for use with an image. If you reform the library so it looks like an image it may work. Or you can just open your spectral library and view all the spectra, then use the Continuum Removal Plot function and save it to a new spectral library.
|