ir_identify_empty_spectra function

Identifies empty spectra in an ir object