ir_get_spectrum function

Extracts selected spectra from an object of class ir