extract_params.spectral function

Obtain parameters from a spectral object