FRB Event class

v2 -- Named events (real ones!)

In [1]:
# imports
from imp import reload

from astropy import units

from frb import frb as ffrb

Instantiate


In [3]:
reload(ffrb)
FRB1 = ffrb.GenericFRB(0.6*units.Jy, 350*units.MHz, 500 * units.pc/units.cm**3)
FRB1


Out[3]:
<GenericFRB: S=0.6 Jy nu_c=350.0 MHz, DM=500.0 pc / cm3>

Set Width


In [4]:
FRB1.set_width('Wi', 3e-5*units.s)

In [5]:
FRB1.Wi


Out[5]:
$3 \times 10^{-5} \; \mathrm{s}$

Named event


In [ ]:
# Chattergee -- α = 05h 31m58.70s , declination δ = +33◦ 08 52.500

In [7]:
reload(ffrb)
frb121102 = ffrb.FRB.by_name('FRB121102')

In [8]:
frb121102


Out[8]:
<FRB: FRB121102 J053158.7+330852.5 DM=558.1 pc / cm3 z=0.19273>

Coordinate


In [13]:
frb121102.coord


Out[13]:
<SkyCoord (ICRS): (ra, dec) in deg
    (82.99458333, 33.14791667)>

Error ellipse


In [9]:
frb121102.eellipse


Out[9]:
{'a': 0.1, 'b': 0.1, 'cl': 95.0, 'theta': 0.0}

DM


In [11]:
# Observed DM
frb121102.DM


Out[11]:
$558.1 \; \mathrm{\frac{pc}{cm^{3}}}$

In [12]:
# ISM DM (NE2001)
frb121102.DMISM


Out[12]:
$158.23787 \; \mathrm{\frac{pc}{cm^{3}}}$

In [ ]: