add_scat¶
- gdt.missions.fermi.gbm.localization.dol.legacy_functions.add_scat(npoints, rgrid, front_scattered_rates, back_scattered_rates, cenergies, spec)[source]¶
Add scattering data for each spectrum
- Parameters:
npoints (int32) – Number of points in the sky grid
rgrid (np.array((2, npoints), float32)) – Grid of (az, zen) positions on the sky
front_scattered_rates (np.ndarray((12, npoints, 16), float32)) – Array with energy response to forward scattering computed separately for each location on the sky for each NaI detector
back_scattered_rates (np.ndarray((12, npoints, 16), float32)) – Array with energy response to backward scattering computed separately for each location on the sky for each NaI detector
cenergies (np.ndarray(2, float32)) – Array with first and last index of chosen energy channel range
spec (str) – Spectrum definition string formatted like so: comp function - “comp,index=-1.15,epeak=350.0” band function - “band,alpha=-1.0,beta=-2.3,epeak=230.0” pl function - “pl,index=-2”
- Returns:
atm_scattered_rates (np.ndarray((14, npoints), np.float32)) – Scattered rates in each detector for a source coming from each point on the sky