BackRates¶
- class gdt.missions.gifts.trigdat.BackRates[source]¶
Bases:
BackRatesGIFTS background rates data in Trigdat.
Attributes Summary
The number of energy channels
The number of detectors
The quality flags for the background
The time range of the background rates
Methods Summary
create([tstart, tstop, quality, rates])Create a BackRates object from keywords.
from_recarray(rec_array)Create from a FITS or numpy record array.
get_detector(det)Retrieve the background rates for a detector
Convert contents of the object to a numpy record array
Attributes Documentation
- num_chans¶
The number of energy channels
- Type:
(int)
- num_dets¶
The number of detectors
- Type:
(int)
- quality¶
The quality flags for the background
- Type:
(int, int)
- time_range¶
The time range of the background rates
- Type:
(float, float)
Methods Documentation
- classmethod create(tstart=None, tstop=None, quality=None, rates=None)[source]¶
Create a BackRates object from keywords.
- Parameters:
tstart (float, optional) – The start time of the MaxRates interval
tstop (float, optional) – The stop time of the MaxRates interval
quality (int, int) – Quality flags
rates (np.array) – The (num channels, num detectors) rates array
- Returns:
- classmethod from_recarray(rec_array)[source]¶
Create from a FITS or numpy record array.
- Parameters:
rec_array (np.recarray) – The FITS BCKRATES record array from the trigdat file
- Returns: