choose_energy_data

gdt.missions.fermi.gbm.localization.dol.legacy_functions.choose_energy_data(ndet, nen, crange, mrates, brates, energies)[source]

Function to choose energy bins

Parameters:
  • ndet (int) – Number of detectors

  • nen (int) – Number of energy bins

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

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

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

  • energies (np.ndarray(nen + 1, float32)) –

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