Fit a powerlaw with a Gaussian line in SPEX

Instructions

The files powgaus.spo and powgaus.res contain an absorbed powerlaw spectrum with a Gaussian line. From an optical observation of the source we know that this source has a redshift of z = 0.0345. There is also Galactic foreground absorption. The source has been observed with the same instrument as the previous exercise.

  1. Load the spectrum into SPEX, select the proper energy range and rebin the spectrum properly. Set up a model with the right components (a gaussian is added with the command s.com('gaus')) and fit the spectrum.

  2. You may want to fit first with the line flux set to zero (freeze or fix some parameter of the line, make a fit, and then fine-tune the line by releasing the relevant parameters.

    Read the section in the SPEX manual about Fluxes and Luminosities and learn how you can set the energy limits with s.elim() and how to get the fluxes with s.flux_get(). The definition of the output can be found on this page.

  3. What is the 2–10 keV luminosity of the source? What is the difference between absorbed and unabsorbed flux?

  4. What is the energy of the centroid of the line? Calculate the equivalent width of the line using Python. (Equivalent width is defined as the ratio between the line flux and the flux of the continuum in the band around the line). You can use the fluxes provided by the s.flux_get() command if you choose the energy limits well. What is the unit of equivalent width?

  5. Calculate the errors on all free parameters. What is the error in the equivalent width that you calculated?

Learning goals

After having done this spectrum, you should know: