PolycoPhase

class baseband_tasks.phases.PolycoPhase(polyco_file)[source] [edit on github]

Bases: object

Helper class for computing pulsar phases using polycos.

Parameters
polyco_filestr

Tempo style polyco file.

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.