template_synthesis.numpy.utilities package¶
- template_synthesis.numpy.utilities.angle_between(v1, v2)¶
Returns the angle in radians between vectors ‘v1’ and ‘v2’
Examples
>>> angle_between((1, 0, 0), (0, 1, 0)) 1.5707963267948966
>>> angle_between((1, 0, 0), (1, 0, 0)) 0.0
>>> angle_between((1, 0, 0), (-1, 0, 0)) 3.141592653589793
- template_synthesis.numpy.utilities.e_to_geo_ce(traces, x, y)¶
Decouples the electric field in the shower plane, i.e. the electric field should be in the (vxB, vxvxB, v) CS, into the geomagnetic and charge-excess components.
- template_synthesis.numpy.utilities.geo_ce_to_e(traces, x, y)¶
Reconstruct a three-dimensional electric field in the shower plane, i.e. the (vxB, vxvxB, v) CS, from the geomagnetic component of the charge-excess components. The v-component is set to zero.