frb.dm.host
Methods related to DM in FRB Host Galaxies
- frb.dm.host.dm_host_from_Halpha(z: float, Halpha: Quantity, reff_ang: Quantity, AV: float = None)[source]
Estimate DM_Host from Halpha and angular size (and redshift)
- Args:
z (float) – Redshift
Halpha (Quantity) – Total Halpha flux of the galaxy
reff_ang (Quantity) – Galaxy angular size
AV (float, optional) – Correct for dust if provided
- Returns:
DM_host as observed (i.e. includes the 1/1+z term)
- Return type:
Quantity
- frb.dm.host.dm_host_from_ssfr(z: float, ssfr: Quantity)[source]
Estimate DM_host from the surface density of SFR
- Args:
z (float) – Redshift
ssfr (Quantity) – Surface density of SFR (with units)
- Returns:
DM_host as observed (i.e. includes the 1/1+z term)
- Return type:
Quantity
- frb.dm.host.dm_host_halo(R: Quantity, log10_Mstar: float, z: float, HMR: str = 'Moster', mNFW: ModifiedNFW = None)[source]
Calculate the DM contribution from the host galaxy’s halo
- Args:
R (Quantity) – Projected radial distance from the center of the halo
log10_Mstar (float) – Logarithm (base 10) of the stellar mass of the host galaxy
z (float) – Redshift of the host galaxy
HMR (str, optional) – Halo mass relation to use (‘Moster’ or ‘Kravstov’). Default is ‘Moster’
mNFW (models.ModifiedNFW, optional) – Instance of the ModifiedNFW model. If None, a default model will be created. Default is None
- Returns:
DM contribution from the host galaxy’s halo
- Return type:
Quantity
- Raises:
IOError – If the specified halo mass relation (HMR) is not supported