save spectra in pickle and calibration file