pint.event_toas.load_event_TOAs
- pint.event_toas.load_event_TOAs(eventname, mission, weights=None, minmjd=-inf, maxmjd=inf, errors=<Quantity 1. us>)[source]
Read photon event times out of a FITS file as PINT
TOA
objects.Correctly handles raw event files, or ones processed with axBary to have barycentered TOAs. Different conditions may apply to different missions.
The minmjd/maxmjd parameters can be used to avoid instantiation of TOAs we don’t want, which can otherwise be very slow.
- Parameters:
eventname (str) – File name of the FITS event list
mission (str) – Name of the mission (e.g. RXTE, XMM)
weights (array or None) – The array has to be of the same size as the event list. Overwrites possible weight lists from mission-specific FITS files
minmjd (float, default "-infinity") – minimum MJD timestamp to return
maxmjd (float, default "infinity") – maximum MJD timestamp to return
errors (astropy.units.Quantity or float, optional) – The uncertainty on the TOA; if it’s a float it is assumed to be in microseconds
- Returns:
toalist
- Return type:
list of
TOA
objects
Note
This list should be converted into a
TOAs
object withpint.toa.get_TOAs_list()
for most operationsSee also