snorer.Geometry

class snorer.Geometry(l,theta,phi,Rs,Re,beta)

The class constructs the static geomatrical relations for \(d\), \(r^\prime\) and \(\cos\psi\) when \((l,\theta,\phi)\) and \((R_s,R_e,\beta)\) are specified. See Positioning for more detail.

Parameters:

l : array_like
    The line-of-sight distance, kpc

theta : array_like
    The zenith angle \(\theta\) at Earth, centers SN, rad

phi : array_like
    Azimuthal angle \(\varphi\) at Earth, centers SN, rad

Rs : array_like
    Distance from Earth to SN, kpc

Re : array_like
    Distance from Earth to GC, kpc

beta: array_like
    Off-center angle \(\beta\), rad

Attributes:

d : scalar/ndarray
    Distance from SN to boost point \(d\), kpc

rprime : scalar/ndarray
    Distance from GC to boost point \(r^\prime\), kpc

cos_psi : scalar/ndarray
    \(\cos\psi\) at boost point where \(\psi\) is the direction for BDM at B pointing Earth

Examples

Import snorer and do

>>> l,theta,phi,Rs,Re,beta = 5.160e-9,1e-4,0,11.6,8.5,0.71  # specify quantities
>>> bdmGeo = Geometry(l,theta,phi,Rs,Re,beta)
>>> print(bdmGeo.d)  # SN to boost point
11.59999999483988
>>> print(bdmGeo.rprime) # GC to boost point
8.49999999608676
>>> print(bdmGeo.cos_psi) # cos(psi)
0.9999999721078604