Combination OR mos/pnback

The tasks mosback and pnback take the intermediate files produced by mosspectra and pnspectra, as well as information from the calibration database, and turn them into model QPB spectra and images in detector coordinates. They must be run separately for each call of mosspectra and pnspectra with different region selections (spectral analysis) or different band selections (image analysis) The following are examples of their calls:

mosback inspecfile=mos1S001-fovt.pi
elow=350 ehigh=1100 ccds="T T T F F F T"
mosback inspecfile=mos2S002-fovt.pi
elow=350 ehigh=1100 ccds="T T T T F T T"
pnback inspecfile=pnS003-fovt.pi
inspecoot=pnS003-fovtoot.pi
elow=350 ehigh=1100 quads="T T T T"


where inspecfile is the source region spectrum produced by mosspectra or pnspectra, elow and ehigh are the limits of the energy band for the creation of the images and must be the same as used in the mosspectra or pnspectra calls. The seven ccd#'s for mosback and four quad#'s for pnback must be the same as used in the mosspectra and pnspectra calls. For pnspectra one also needs the spectrum extracted over the same source region from the OOT events file, inspecoot. Note that multiple bands can be run without overwriting vital files. However, as mentioned above, if multiple regions from the same exposures are extracted (e.g., for spectral analysis purposes such as investigating the radial profile of a cluster of galaxies) renaming of certain files is required.

The output of mosback is primarily diagnostic:

P-augindiv.qdp
- The augmented unexposed corner spectra for each chip used.
P-augspec.qdp
- The source spectrum and the background spectrum.
P-bkgaccum.qdp
- The accumulated unexposed corner spectra for each chip used.
P-bkgindiv.qdp
- The corner data for each chip used(?).
P-bkgspec.qdp
- The QPB background spectrum for the region of interest.
P-bridgefit.qdp
- A plot showing the function fitted to the QPB background spectrum in order to bridge the region occupied by the Al K lines.
P-ratioindiv.qdp
- The ratio of observation unexposed corner data to FWC unexposed corner data for each chip.
All of these are QDP plot files. Similar files are produced by pnback.

The essential output files for mosback is:

P-bkg.pi
- The QPB spectrum for the area of interest.
P-coraugN.pi
- The augmented corner spectra for chip N.
P-bkgimdet-elo-ehi.fits
- The QPB background image in detector coordinates for the region of interest, in the elo to ehi band, if the withimages flag is set to true.

The files produced by pnback are similar and the essential files are:

P-bkg.pi
- The QPB spectrum. Note that this is the essentially the modified FWC data after the subtraction of the OOT events from the FWC data.
P-fovtootsub.pi
- The object spectrum after the subtraction of the OOT events from the observation.
P-bkgimdet-elo-ehi.fits
- The QPB background image in detector coordinates for the region of interest, in the elo to ehi band, if withimages is set to true.