get_scattered_rates

gdt.missions.fermi.gbm.localization.dol.legacy_functions.get_scattered_rates(rcart, gperp, gpmag, elev, earthpoints, response_res, grid_points, scatterdata, scat_geom, nai_az, nai_zen, nai_unit_vec, back_unit_vec)[source]

Calculate amount of scattering given geometry.

Parameters:
  • rcart (np.array((2, npoints), float32)) – Grid of (az, zen) positions on the sky

  • gperp (np.ndarray(3, 12), float32)) – Direction perpendicular to line between Earth center and each NaI detector

  • gpmag (np.ndarray(12, float32)) – Magnitude of each gperp vector

  • elev (np.ndarray(12, float32)) – Elevation angle for each detector in radians

  • earthpoints (np.ndarray((3,236), float32)) – Array of position vectors relative to the Earth that were used to build atmospheric scattering matrix obtained with read_scatter_data()

  • response_res (int32) – Respolution of the response matrix as an integer bin number

  • grid_points (np.ndarray(response_res, float32)) – Array of zenith angles for each response point in degrees

  • scatterdata (np.ndarray((16, 236, 19), float32)) – Array with scattering matrix

  • scat_geom (int32) – Scattering geometry. 0=forward, 1=backward.

  • nai_az (np.ndarray(12, float32)) – Azimuth position of each NaI detector on spacecraft in degrees

  • nai_zen (np.ndarray(12, float32)) – Zenith position of each NaI detector on spacecraft in degrees

  • nai_unit_vec (np.ndarray(12, float32)) – Unit vectors along the direction of each NaI detector on spacecraft

  • back_unit_vec (np.ndarray(12, float32)) – Unit vector along the anti-direction of each NaI detector on spacecraft

Returns:

scattered_rates (np.ndarray) – Rates of scatter photons in each detector