Pulsar timing

NICERsoft uses PINT for pulse phases and TOAs. A typical workflow is shown in Quick start; this page gives more detail on each step.

Pulse phases

Phases are computed by PINT’s photonphase, using a timing model (.par file) and the NICER orbit file. psrpipe.py does this automatically when given --par, adding a PULSE_PHASE column to cleanfilt.evt. --polycos uses polynomial approximations to the timing model, which is much faster for large numbers of events. For a file that has already been processed, run photonphase directly:

photonphase --orbfile ni1060020101.orb.gz --addphase cleanfilt.evt J0030+0451.par

Looking at the pulsations

Templates

TOAs are measured by fitting a template to the pulse profile. nitemplate.py fits a template of Gaussian components interactively and writes it to a .gauss file. Templates in the format with a META_STOP header line can be renormalized with fix_template.py.

TOAs

photon_toa.py measures TOAs from the events, a template and a timing model, and writes them in Tempo2 format. The main options are:

  • --tint and --maxint: how much exposure goes into each TOA. With neither, one TOA is made from all of the events.

  • --grid: make TOAs on a regular grid of times instead.

  • --phasecol PULSE_PHASE: use phases already in the event file instead of recomputing them.

  • harmN as the template name: measure the TOA from the phase of the Nth Fourier harmonic instead of fitting a template.

  • --topo: make topocentric (spacecraft) TOAs, including the spacecraft position on each TOA line; otherwise the TOAs are barycentric.

Each TOA has flags giving the exposure, H-test value and signal-to-noise ratio, among others. toafilt.py removes TOAs with a low H-test value, short exposure or large uncertainty.

photon_fit.py fits a template to a stored phase column and reports the source and background properties without making TOAs, and pardiff.py compares two timing models.

Other formats

nicerfits2presto.py converts events to PRESTO format for periodicity searches.