ixpeproduct.py indir outdir [weight=0] [srcregfile] [bgregfile] [radius] [en_lo=2.0] [en_up=8.0] [backrej=no] [pmapfiles] [evtfiles] [pmapseg] [pi_lo] [pi_up] [binlc] [lcthresh] [xcmname] [clobber]
ixpeproduct is a wrapper for a number of HEASoft FTOOLS.
It extracts spectra from source and background regions specified in [srcregfile] and [bgregfile] files,
respectively, and light curves with HEASoft's extractor from Level 2 event FITS files located
in the directory given by the indir parameter.
Light curve time bin size is specified by [binlc] and bins whose exposure is less than [lcthresh] times the binsize are ignored.
ixpeproduct also calculates Stokes parameters and their derivatives using ixpepolarization.
ixpeproduct also generates (or retrieves) the corrected instrument response files corresponding to
each of the Stokes spectra extracted from the source region(s) specified in the [srcregfile]
file using ixpecalcarf.
The resulting background and response file names are added to the BACKFILE, RESPFILE,
and ANCRFILE header keywords in the spectral files as appropriate. ixpeproduct also generates XSPEC and
PyXspec command files named [xcmname] that help simplify initializing spectral analysis sessions.
All products are placed in the directory specified by the outdir parameter.
ixpeproduct is used to prepare data for spectropolarimetric analysis using, e.g., the data analysis package XSPEC or its python-based version, PyXspec,
to perform model-independent statistical analysis of Stokes parameters and their derivatives using ixpepolarization,
and to generate tables (light curves) of the time history of the source intensity.
Because of IXPE's imaging capability, typical usage is to first define a source spatial region in sky coordinates and,
optionally, a nearby background region of interest using a data visualization application such as ds9.
Then, ixpeproduct is used to generate data products and instrument response files for these regions correctly accounting for, e.g., spacecraft dither, data weighting scheme, and the latest calibration database (CALDB) products. See ixpecalcarf for further details of response file generation, extractor for details of the data extraction, and ixpepolarization for details of the derivation of Stokes parameters and related quantaties.
ixpeproduct is highly versatile.
Typically, a source region file, [srcregfile],
is specified and the contents of the IXPE archive have been obtained from the HEASARC and placed in the indir directory.
The archive contains the level 2 event list and level 1 housekeeping attitude files needed for ixpeproduct to
extract spectra and light curves and to generate instrument response files.
When [srcregfile] is specified, pointing map files(s) are used to generate the instrument response files.
ixpeproduct will generate pointing maps automatically generated using the ixpeexpmap FTOOL, unless the user provides the [pmapfiles] parameter specifically.
Alternatively, for point-like, on-axis sources, the user can choose to specify the [radius] of a circular region that ixpeproduct will generate.
If neither [srcregfile] file nor [radius] are specified, ixpeproduct will generate products using data from the entirety of each detector unit.
extractor, ixpepolarization and ixpecalcarf. More information on IXPE event weighting can be found in Sec. 3.2 of the IXPE Quick Start Guide.
extractor, ixpepolarization and ixpecalcarf.
extractor and ixpecalcarf.
ixpepolarization.
ixpepolarization.
ixpeexpmap help page for details.
Used by ixpecalcarf.
ixpepolarization.
ixpepolarization.
extractor.
extractor.
extractor.
ixpeproduct indir=./03250701 outdir=ixpeproduct_03250701 backrej=yes srcregfile=./3c273_ixpe_src.reg \
bgregfile=./3c273_ixpe_bg.reg weight=1 clobber=yes backrej=yes
ixpecalcarf, extractor, ixpepolarization