PintPhase

class baseband_tasks.phases.PintPhase(par_file, observatory, frequency, **kwargs)[source] [edit on github]

Bases: object

Helper class for computing pulsar phases using PINT.

Parameters
par_filestr

TEMPO/TEMPO2 style parameter file.

observatorystr

Observatory name or observatory code.

frequencyQuantity.

Observing frequency. If not a scalar, one has to ensure it can be broadcast properly against time arrays for which phases and spin frequencies are calculated.

**kwargs

Additional key words arguments for making TOAs. Please see the documentation of PintToas.

Notes

This method provides high precision phase calculation(~10 Nanosecond timing precision).

Methods Summary

__call__(t)

Compute the apparent phase at one or more times.

apparent_spin_freq(t)

Compute the apparent spin frequency at one or more times.

Methods Documentation

__call__(t)[source] [edit on github]

Compute the apparent phase at one or more times.

Parameters
tTime

The input time stamps.

Returns
phasePhase

The apparent pulse phase at time t, using a 2-part double of the integer cycle and the fractional phase. The latter is between -0.5 and 0.5.

apparent_spin_freq(t)[source] [edit on github]

Compute the apparent spin frequency at one or more times.

Parameters
tTime

The input time stamps.

Returns
f0Quantity

The apparent spin frequency at time t.