ir_flatten: Converts objects of class ir to objects of class ir_flat
Description
ir_flatten takes and object of class ir, extracts the
spectra column and combines the spectra into an object of class
ir_flat. Metadata are not retained during flattening.