In [24]:
import heasoftpy as hsp
from heasoftpy.ixpe.ixpeproduct_lib import ixpeproduct
In [25]:
# regions
srcreg = '../../IXPE/03250701/3c273_ixpe_src.reg'
bgreg = '../../IXPE/03250701/3c273_ixpe_bg.reg'
indir = '../../IXPE/03250701'
outdir = '../../IXPE/product'
clobber='yes'
weight=1
en_lo = 3.0
en_up = 7.0
In [26]:
ixpeproduct(
indir='../../IXPE/03250701',
outdir='../../IXPE/product',
weight=1,
srcregfile=srcreg,
bgregfile=bgreg,
en_lo=3.0,
en_up=7.0,
backrej='yes',
clobber='yes'
)
running getpmap with seg=False
WARNING: HSPDeprecationWarning:
Parameter `allow_failure` not set, defaulting to `True`.
Default will be changed to `False` in a future update,
pass `allow_failure = True`, or set it globally with
`heasoftpy.Config.allow_failure = True` to maintain current
behavior.
[heasoftpy.core]
WARNING: FITSFixedWarning: RADECSYS= 'ICRS ' / Celestial coordinate system
the RADECSYS keyword is deprecated, use RADESYSa. [astropy.wcs.wcs]
WARNING: FITSFixedWarning: 'datfix' made the change 'Set DATEREF to '2017-01-01T00:01:09.184' from MJDREF.
Set MJD-OBS to 60680.215361 from DATE-OBS.
Set MJD-END to 60682.311530 from DATE-END'. [astropy.wcs.wcs]
WARNING: VerifyWarning: Card is too long, comment will be truncated. [astropy.io.fits.card]
changing XCMNAME replacing ../../IXPE/product/ixpe03250701_DU1_I.pi ixpe03250701_DU1_I.pi replacing ../../IXPE/product/ixpe03250701_DU2_I.pi ixpe03250701_DU2_I.pi replacing ../../IXPE/product/ixpe03250701_DU3_I.pi ixpe03250701_DU3_I.pi replacing ../../IXPE/product/ixpe03250701_DU1_Q.pi ixpe03250701_DU1_Q.pi replacing ../../IXPE/product/ixpe03250701_DU2_Q.pi ixpe03250701_DU2_Q.pi replacing ../../IXPE/product/ixpe03250701_DU3_Q.pi ixpe03250701_DU3_Q.pi replacing ../../IXPE/product/ixpe03250701_DU1_U.pi ixpe03250701_DU1_U.pi replacing ../../IXPE/product/ixpe03250701_DU2_U.pi ixpe03250701_DU2_U.pi replacing ../../IXPE/product/ixpe03250701_DU3_U.pi ixpe03250701_DU3_U.pi
Out[26]:
--------------------- :: Execution Result :: --------------------- > Return Code: 0 > Output: Products will be saved under ../../IXPE/product converting the energy lower bound 3.0 to PI lower bound 75. converting the energy upper bound 7.0 to PI upper bound 175. Searching for event files and attitude files Event files found:/Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//event_l2/ixpe03250701_det1_evt2_v01.fits.gz Attitude file found:/Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//hk/ixpe03250701_det1_att_v01.fits.gz Event files found:/Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//event_l2/ixpe03250701_det2_evt2_v01.fits.gz Attitude file found:/Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//hk/ixpe03250701_det2_att_v01.fits.gz Event files found:/Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//event_l2/ixpe03250701_det3_evt2_v01.fits.gz Attitude file found:/Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//hk/ixpe03250701_det3_att_v01.fits.gz Loading the event file header... Finished loading the event file header... Found same number of attitude files as event files, setting pmapseg to False. srcregfile exists, ignoring radius and checking for pmap files Found /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//hk/ixpe03250701_det1_pntmap.fits! Found /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//hk/ixpe03250701_det2_pntmap.fits! Found /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701//hk/ixpe03250701_det3_pntmap.fits! Found existing background rejected event list /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det1_evt2_rej_v01.fits.gz Found existing background rejected event list /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det2_evt2_rej_v01.fits.gz Found existing background rejected event list /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det3_evt2_rej_v01.fits.gz Running EXTRACTOR again for light curves with binsize = 100.0... Filtering events within 75 < PI 175... hsp.extractor will save the light curves under ../../IXPE/product Running HEASOFT extractor... Showing Extractor keys and items below: filename: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det1_evt2_rej_v01.fits.gz[PI=75:175] Showing Extractor keys and items below: stokes: NEFF Showing Extractor keys and items below: phafile: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/product/tmpprz_l251/tempspec_1.pi Showing Extractor keys and items below: regionfile: ../../IXPE/03250701/3c273_ixpe_src.reg Showing Extractor keys and items below: clobber: yes Showing Extractor keys and items below: polwcol: W_MOM Showing Extractor keys and items below: tcol: TIME Showing Extractor keys and items below: ecol: PI Showing Extractor keys and items below: xcolf: X Showing Extractor keys and items below: xcolh: X Showing Extractor keys and items below: ycolf: Y Showing Extractor keys and items below: ycolh: Y Showing Extractor keys and items below: timefile: None Showing Extractor keys and items below: binlc: 100.0 Showing Extractor keys and items below: lcthresh: 0.1 Showing Extractor keys and items below: eventsout: NONE Showing Extractor keys and items below: imgfile: NONE Showing Extractor keys and items below: fitsbinlc: ../../IXPE/product/ixpe03250701_lc_DU1.fits Showing Extractor keys and items below: filename: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det2_evt2_rej_v01.fits.gz[PI=75:175] Showing Extractor keys and items below: stokes: NEFF Showing Extractor keys and items below: phafile: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/product/tmpprz_l251/tempspec_2.pi Showing Extractor keys and items below: regionfile: ../../IXPE/03250701/3c273_ixpe_src.reg Showing Extractor keys and items below: clobber: yes Showing Extractor keys and items below: polwcol: W_MOM Showing Extractor keys and items below: tcol: TIME Showing Extractor keys and items below: ecol: PI Showing Extractor keys and items below: xcolf: X Showing Extractor keys and items below: xcolh: X Showing Extractor keys and items below: ycolf: Y Showing Extractor keys and items below: ycolh: Y Showing Extractor keys and items below: timefile: None Showing Extractor keys and items below: binlc: 100.0 Showing Extractor keys and items below: lcthresh: 0.1 Showing Extractor keys and items below: eventsout: NONE Showing Extractor keys and items below: imgfile: NONE Showing Extractor keys and items below: fitsbinlc: ../../IXPE/product/ixpe03250701_lc_DU2.fits Showing Extractor keys and items below: filename: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det3_evt2_rej_v01.fits.gz[PI=75:175] Showing Extractor keys and items below: stokes: NEFF Showing Extractor keys and items below: phafile: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/product/tmpprz_l251/tempspec_3.pi Showing Extractor keys and items below: regionfile: ../../IXPE/03250701/3c273_ixpe_src.reg Showing Extractor keys and items below: clobber: yes Showing Extractor keys and items below: polwcol: W_MOM Showing Extractor keys and items below: tcol: TIME Showing Extractor keys and items below: ecol: PI Showing Extractor keys and items below: xcolf: X Showing Extractor keys and items below: xcolh: X Showing Extractor keys and items below: ycolf: Y Showing Extractor keys and items below: ycolh: Y Showing Extractor keys and items below: timefile: None Showing Extractor keys and items below: binlc: 100.0 Showing Extractor keys and items below: lcthresh: 0.1 Showing Extractor keys and items below: eventsout: NONE Showing Extractor keys and items below: imgfile: NONE Showing Extractor keys and items below: fitsbinlc: ../../IXPE/product/ixpe03250701_lc_DU3.fits IXPEPRODUCT: light curves extracted. Running HEASOFT Extractor... hsp.extractor will save the spectra under ../../IXPE/product Running HEASOFT extractor... Showing Extractor keys and items below: filename: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det1_evt2_rej_v01.fits.gz Showing Extractor keys and items below: stokes: NEFF Showing Extractor keys and items below: phafile: ../../IXPE/product/ixpe03250701_DU1_.pi Showing Extractor keys and items below: regionfile: ../../IXPE/03250701/3c273_ixpe_src.reg Showing Extractor keys and items below: clobber: yes Showing Extractor keys and items below: polwcol: W_MOM Showing Extractor keys and items below: tcol: TIME Showing Extractor keys and items below: ecol: PI Showing Extractor keys and items below: xcolf: X Showing Extractor keys and items below: xcolh: X Showing Extractor keys and items below: ycolf: Y Showing Extractor keys and items below: ycolh: Y Showing Extractor keys and items below: timefile: None Showing Extractor keys and items below: binlc: 100.0 Showing Extractor keys and items below: lcthresh: 0.5 Showing Extractor keys and items below: eventsout: NONE Showing Extractor keys and items below: imgfile: NONE Showing Extractor keys and items below: fitsbinlc: NONE Generating background spectra for DU1 Background spectra for DU1 generated, adding BACKFILE and BACKSCALE keywords... Reading region file. Supported coordinate systems: fk5, icrs, j2000. Supported shapes: polygon, circle, annulus. Reading region file. Supported coordinate systems: fk5, icrs, j2000. Supported shapes: polygon, circle, annulus. Showing Extractor keys and items below: filename: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det2_evt2_rej_v01.fits.gz Showing Extractor keys and items below: stokes: NEFF Showing Extractor keys and items below: phafile: ../../IXPE/product/ixpe03250701_DU2_.pi Showing Extractor keys and items below: regionfile: ../../IXPE/03250701/3c273_ixpe_src.reg Showing Extractor keys and items below: clobber: yes Showing Extractor keys and items below: polwcol: W_MOM Showing Extractor keys and items below: tcol: TIME Showing Extractor keys and items below: ecol: PI Showing Extractor keys and items below: xcolf: X Showing Extractor keys and items below: xcolh: X Showing Extractor keys and items below: ycolf: Y Showing Extractor keys and items below: ycolh: Y Showing Extractor keys and items below: timefile: None Showing Extractor keys and items below: binlc: 100.0 Showing Extractor keys and items below: lcthresh: 0.5 Showing Extractor keys and items below: eventsout: NONE Showing Extractor keys and items below: imgfile: NONE Showing Extractor keys and items below: fitsbinlc: NONE Generating background spectra for DU2 Background spectra for DU2 generated, adding BACKFILE and BACKSCALE keywords... Reading region file. Supported coordinate systems: fk5, icrs, j2000. Supported shapes: polygon, circle, annulus. Reading region file. Supported coordinate systems: fk5, icrs, j2000. Supported shapes: polygon, circle, annulus. Showing Extractor keys and items below: filename: /Users/cchen24/Downloads/3c273/IACHEC/IXPE/03250701/event_l2/ixpe03250701_det3_evt2_rej_v01.fits.gz Showing Extractor keys and items below: stokes: NEFF Showing Extractor keys and items below: phafile: ../../IXPE/product/ixpe03250701_DU3_.pi Showing Extractor keys and items below: regionfile: ../../IXPE/03250701/3c273_ixpe_src.reg Showing Extractor keys and items below: clobber: yes Showing Extractor keys and items below: polwcol: W_MOM Showing Extractor keys and items below: tcol: TIME Showing Extractor keys and items below: ecol: PI Showing Extractor keys and items below: xcolf: X Showing Extractor keys and items below: xcolh: X Showing Extractor keys and items below: ycolf: Y Showing Extractor keys and items below: ycolh: Y Showing Extractor keys and items below: timefile: None Showing Extractor keys and items below: binlc: 100.0 Showing Extractor keys and items below: lcthresh: 0.5 Showing Extractor keys and items below: eventsout: NONE Showing Extractor keys and items below: imgfile: NONE Showing Extractor keys and items below: fitsbinlc: NONE Generating background spectra for DU3 Background spectra for DU3 generated, adding BACKFILE and BACKSCALE keywords... Reading region file. Supported coordinate systems: fk5, icrs, j2000. Supported shapes: polygon, circle, annulus. Reading region file. Supported coordinate systems: fk5, icrs, j2000. Supported shapes: polygon, circle, annulus. IXPEPRODUCT: spectra extracted. Getting the RMF from CALDB and adding them to spectral files... IXPEPRODUCT: Copying ixpe_d1_20211209_alpha075_01.rmf to ../../IXPE/product and adding them to spectral files. IXPEPRODUCT: Copying ixpe_d2_20211209_alpha075_01.rmf to ../../IXPE/product and adding them to spectral files. IXPEPRODUCT: Copying ixpe_d3_20211209_alpha075_01.rmf to ../../IXPE/product and adding them to spectral files. Running IXPECALCARF... running ixpecalcarf using CALDB Running ixpecalcarf for DU1, arf ../../IXPE/product/ixpe03250701_DU1.arf was generated using ixpecalcarf Running ixpecalcarf for DU1, mrf ../../IXPE/product/ixpe03250701_DU1.mrf was generated using ixpecalcarf Running ixpecalcarf for DU2, arf ../../IXPE/product/ixpe03250701_DU2.arf was generated using ixpecalcarf Running ixpecalcarf for DU2, mrf ../../IXPE/product/ixpe03250701_DU2.mrf was generated using ixpecalcarf Running ixpecalcarf for DU3, arf ../../IXPE/product/ixpe03250701_DU3.arf was generated using ixpecalcarf Running ixpecalcarf for DU3, mrf ../../IXPE/product/ixpe03250701_DU3.mrf was generated using ixpecalcarf IXPEPRODUCT: ARF/MRF generated by ixpecalcarf. ixpemkxspec result: --------------------- :: Execution Result :: --------------------- > Return Code: 0 > Output: > Parameters: specfiles : ['../../IXPE/product/ixpe03250701_DU1_I.pi', '../../IXPE/product/ixpe03250701_DU2_I.pi', '../../IXPE/product/ixpe03250701_DU3_I.pi', '../../IXPE/product/ixpe03250701_DU1_Q.pi', '../../IXPE/product/ixpe03250701_DU2_Q.pi', '../../IXPE/product/ixpe03250701_DU3_Q.pi', '../../IXPE/product/ixpe03250701_DU1_U.pi', '../../IXPE/product/ixpe03250701_DU2_U.pi', '../../IXPE/product/ixpe03250701_DU3_U.pi'] xcmname : ../../IXPE/product/ixpexspec.xcm ignore : yes emin : 2.0 emax : 8.0 caldbresp : yes mode : ql Running IXPEPOLARIZATION... IXPEPRODUCT: polarization results were calculated and saved into ixpe03250701_polarization.fits > Parameters: indir : ../../IXPE/03250701 outdir : ../../IXPE/product backrej : yes srcregfile: ../../IXPE/03250701/3c273_ixpe_src.reg bgregfile : ../../IXPE/03250701/3c273_ixpe_bg.reg radius : -1.0 weight : 1 pmapfiles : evtfiles : pmapseg : yes pi_lo : -1 pi_up : -1 en_lo : 3.0 en_up : 7.0 binlc : 100.0 lcthresh : 0.1 xcmname : ixpexspec.xcm clobber : yes mode : ql
In [ ]: