Text this: Reconstruction of beam parameters and betatron radiation spectra measured with a Compton spectrometer