calcbgdcor --> calculates the background spectra for a given source region with a given background region, away from source region.
calcbgdcor srcfil bckfil arf_srcfil arf_bckfil particle_srcfil particle_bckfil rmffil expmapfil regfil_sou regfil_bck outfil
The usual method for correcting a spectrum, from an imaging detector, for background is to extract a spectrum from another part of the image and subtract that from the source spectrum. This assumes that the source region has the same background spectrum as the background region. However, in practice, instrument performance often varies across the face of the detector either due to mirror vignetting or changes in detector efficiency. To deal with this correction, the Xray and non-Xray part of background spectrum are separated. Then corrections for vignetting, detector efficiency and the area scaling are applied to the Xray component. This is when added to the non-Xray component of the source gives the background spectra for the source. This is done using the results of the tasks PCPARPHA, PCARF, PCEXPMAP, FIXREGION. Now, CALCBGDCOR collects all this information and returns the required corrected background spectra for the chosen source region. CALCBGDCOR supports regions POINT, CIRCLE, ELLIPSE, ANNULUS, and BOX. It does not support POLYGON.
Before calling CALCBGDCOR, one has to run FIXREGION to convert the region files (source region and background region) to the appropriate coordinate system, i.e. the coordinate frame of the exposure map. So, after running PCEXPMAP one has to run FIXREGION, since CALCBGDCOR requires the corrected region files as inputs."
Also, before running this task user needs to set the environmental variable to CALDB. To do this, one needs to source the caldbinit.unix or caldbinit.vms or caldbinit_iraf.unix file depending on the system in use.
None known
help on PCPARPHA, PCARF, PCEXPMAP, FIXREGION
Banashree Mitra Seifert HEASARC, NASA/GSFC http://heasarc.gsfc.nasa.gov/cgi-bin/ftoolshelp