deadtime_correct

gdt.missions.fermi.gbm.localization.dol.legacy_functions.deadtime_correct(crange, mrates, brates, sduration, bgduration, energies, verbose=False)[source]

Compute deadtime corrected rates

Parameters:
  • crange (np.ndarray(2, int32)) – Array of energy channel IDs chosen for localization

  • mrates (np.ndarry(ndet * nen, int32)) – Array of measured detector counts in each energy channel

  • brates (np.ndarry(ndet * nen, int32)) – Array of estimated background counts in each energy channel

  • sduration (float32) – Timescale of measured detector counts

  • bgduration (float32) – Timescale of estimated background counts

  • energies (np.ndarray(nen + 1, float32)) – Array with end points of energy channel bins

  • verbose (bool) – Print things to screen when True

Returns:

  • c_mrates (np.ndarray(ndet, int32)) – Measured detector counts summed over chosen energy channels

  • c_brates (np.ndarray(ndet, int32)) – Estimated background counts summed over chosen energy channels

  • cenergies (np.ndarray(2, float32)) – Array with first and last index of chosen energy channel range

  • usedet (np.ndarray(ldet, int32)) – Array determining whether we use detector in localization. 0=Not Used, 1=Used

  • maxdet (int) – Array index for detector with the largest count excess relative to background during the signal duration

  • data_signif (float32) – Gaussian significance estimate of this signal detection

  • deadtime (np.ndarray(ndet, float32)) – Array of cumulative deadtimes for each detector