frb.dlas - Intervening Galaxies (DLAs)
Assessing impact of intervening galaxies (DLAs) on FRB measurements, based on Prochaska & Neeleman 2017.
Module for assessing impact of intervening galaxies (DLAs) on FRB measurements Based on calclations presented in Prochaska & Neeleman 2017
- frb.dlas.approx_avgDM(zeval, dla_model='atan', verbose=False)[source]
Calculate the average DM from intervening galaxies This method is approximate (and fast) and accurate to better than 1% in-so-far as the analysis is correct.
From Prochaska & Neeleman 2017
- frb.dlas.monte_tau(zeval, nrand=100, nHI=0.1, avg_ne=-2.6, sigma_ne=0.5, cosmo=None, lobs=<Quantity 50. cm>, turb=None)[source]
Generate random draws of tau at a series of redshifts
- Parameters:
zeval (ndarray) – Array of redshifts for evaluation
nrand (int, optional) – Number of samples on NHI
avg_ne (float, optional) – Average log10 electron density / cm**3
sigma_ne (float, optional) – Error in log10 ne
nHI (float, optional) – Fiducial value for n_HI; used for DL value
lobs (Quantity) – Wavelength for analysis
turb (Turbulence object, optional) – Usually defined internally and that is the highly recommended approach
cosmo (astropy.cosmology, optional) – Defaults to defs.frb_cosmo
- Returns:
rand_tau – Random tau values reported in ms (but without explicit astropy Units)
- Return type:
ndarray (nrand, nz)