Generating fake spectra in Xspec


Before starting


First try at generating a fake spectrum


Using the apec model to find the oxygen line emission as a function of temperature

The assignment is to use the apec model to generate spectra for various temperatures in the range from 105 K to 107 K, then fit each spectrum to measure the strength of the oxygen O VII and O VIII lines and plot the strength of those lines and their ratio as a function of temperature.  To complete the assignment, you will need to generate spectra using fakeit as described above but with an apec or vapec model and then fit those spectra using model that is a sum of vapec and gaussians, as in the data analysis assignment.

Some hints:
You should hand in (not necessarily in this order):