MaxRates¶
- class gdt.missions.gifts.trigdat.MaxRates[source]¶
Bases:
MaxRatesGIFTS MAXRATES and TRIGRATE data in Trigdat.
Attributes Summary
The position of Fermi in Earth inertial coordinates
The number of energy channels
The number of detectors
The quaternions at the maxrates time
The time range of the maxrates
The timescale of the maxrates
Methods Summary
create([tstart, tstop, quaternion, eic, rates])Create a MaxRates object from keywords.
from_recarray(rec_array)Create from a FITS or numpy record array.
get_detector(det)Retrieve the rates for a detector
Convert contents of the object to a numpy record array.
Attributes Documentation
- eic¶
The position of Fermi in Earth inertial coordinates
- Type:
(np.array)
- num_chans¶
The number of energy channels
- Type:
(int)
- num_dets¶
The number of detectors
- Type:
(int)
- quaternion¶
The quaternions at the maxrates time
- Type:
(np.array)
- time_range¶
The time range of the maxrates
- Type:
(float, float)
- timescale¶
The timescale of the maxrates
- Type:
(float)
Methods Documentation
- classmethod create(tstart=None, tstop=None, quaternion=None, eic=None, rates=None)[source]¶
Create a MaxRates object from keywords.
- Parameters:
tstart (float, optional) – The start time of the MaxRates interval
tstop (float, optional) – The stop time of the MaxRates interval
quaternion (np.array, optional) – The attitude quaternion
eic (np.array, optional) – The position in earth inertial coordinates
rates (np.array) – The (num channels, num detectors) rates array
- Returns:
(
MaxRates)
- classmethod from_recarray(rec_array)[source]¶
Create from a FITS or numpy record array.
- Parameters:
rec_array (np.recarray) – The FITS TRIGRATE or MAXRATES record array from the trigdat file
- Returns:
(
MaxRates)