reduction code for UCLES spectra