pint.event_toas.load_fits_TOAs
- pint.event_toas.load_fits_TOAs(eventname, mission, weights=None, extension=None, timesys=None, timeref=None, minmjd=-inf, maxmjd=inf, errors={'IXPE': <Quantity 20. us>, 'NICER': <Quantity 0.1 us>, 'NuSTAR': <Quantity 65. us>, 'RXTE': <Quantity 2.5 us>, 'Swift': <Quantity 300. us>, 'XMM': <Quantity 48. us>, 'default': <Quantity 1. us>})[source]
Read photon event times out of a FITS file as a list of 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
extension (str) – FITS extension to read
timesys (str, default None) – Force this time system
timeref (str, default None) – Forse this time reference
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