Selecting good data
Good Time Intervals (GTIs) are the times when the data are usable. NICER’s background varies a lot around the orbit, so choosing GTIs carefully matters, especially for faint sources.
What psrpipe.py does
For each ObsID, psrpipe.py:
Runs nicerql.py to make quick-look plots of the unscreened data (
*_prefilt_*.png).Makes GTIs from the filter (
.mkf) file withnimaketime, keeping times when:the pointing offset
ANG_DISTis below 0.015° (--angdist);the elevation above the Earth limb
ELVis above 20° and above the bright EarthBR_EARTHis above 30°;the star tracker is valid and the instrument is tracking the target;
the spacecraft is outside the NICER SAA region;
at least 7 detector modules are on (
--minfpm);the undershoot rate per module is below 500 (
--maxundershoot, or no limit with--nounderfilt) and the overshoot rate per module is below 1.5 (--maxovershoot).
Combines these with the GTIs already in the event file, and drops GTIs shorter than 16 s (
--mingti).Extracts the events in those GTIs with
PIbetween--eminand--emaxandEVENT_FLAGS=bx1x000(slow-only and slow+fast events), removing any detectors given with--mask. The result iscleanfilt.evt.If
--paris given, adds aPULSE_PHASEcolumn with PINT’sphotonphase.Extracts a spectrum and light curve with
extractor.
Optional cuts
These psrpipe.py options add further conditions to the GTIs:
Option |
Keeps times when |
|---|---|
|
the ISS is in the Earth’s shadow ( |
|
the Sun angle is above X degrees, or the ISS is in shadow |
|
the cutoff rigidity |
|
the geomagnetic Kp index is below X (needs a |
|
the median undershoot rate is below X |
|
the overshoot rate is below |
|
the ISS is outside the polar horn regions |
--day and --daynight use the event files that nicerl2 makes with
threshfilter=DAY or ALL, which include data taken in daylight after the
2023 light leak.
Other tools
cr_cut.py removes times when the count rate is above a threshold, which removes background flares.
psrpipe.py --merge --crcutapplies it to the merged event file.ni_Htest_sortgti.py sorts GTIs by their background rate and finds the set that maximizes the H-test detection significance of a pulsar, which can help a lot for faint pulsars.
nioptcuts.py finds the energy range that maximizes the detection significance.
mkgti.py makes a GTI file from a start and stop MET, for use with
niextract-events timefile=....splitevt.py splits an event file into chunks of a given length.
In Python, nicer.plotutils.apply_gti() selects the events in a GTI
table.