rabacus.uv_bgnd package

Subpackages

Submodules

rabacus.uv_bgnd.hm12 module

Handles IO and standard spectra creation for files related to the Haardt and Madau 2012 UV Background http://adsabs.harvard.edu/abs/2012ApJ...746..125H. Default units are eV and s for ease of comparison between this code and the results in the paper.

class rabacus.uv_bgnd.hm12.HM12_Photorates_Table[source]

Handles the tabulated HM12 photoionization and heating data from Table 3 in http://adsabs.harvard.edu/abs/2012ApJ...746..125H.

Attributes:

u (Units)

pc (PhysicalConstants)

H1h(z)[source]

H1 photoheating rate as a function of z.

Args:
z (float): redshift
Returns:
H1h (float): H1 photoheating rate
H1i(z)[source]

H1 photoionization rate as a function of z.

Args:
z (float): redshift
Returns:
H1i (float): H1 photoionization rate
He1h(z)[source]

He1 photoheating rate as a function of z.

Args:
z (float): redshift
Returns:
He1h (float): He1 photoheating rate
He1i(z)[source]

He1 photoionization rate as a function of z.

Args:
z (float): redshift
Returns:
He1i (float): He1 photoionization rate
He2h(z)[source]

He2 photoheating rate as a function of z.

Args:
z (float): redshift
Returns:
He2h (float): He2 photoheating rate
He2i(z)[source]

He2 photoionization rate as a function of z.

Args:
z (float): redshift
Returns:
He2i (float): He2 photoionization rate
comptonh(z)[source]

Compton heating rate as a function of z.

Args:
z (float): redshift
Returns:
comptonh (flaot): Compton heating rate
class rabacus.uv_bgnd.hm12.HM12_UVB_Table[source]

Handles the tabulated HM12 spectrum.

Attributes:

U (Units)

PC (PhysicalConstants)

z (array): 1-D array [Nz] redshift

Inu (array): 2-D array [Nnu, Nz] specific intensity [erg/(cm**2 s sr Hz)]

nu (array): 1-D array [Nnu] photon frequency

lam (array): 1-D array [Nnu] photon wavelength

E (array): 1-D array [Nnu] photon energy

return_Inu_intrp(z)[source]

Generates an interpolating function giving log Inu for a given log lamda at the requested redshift.

Args:
z (float): requested redshift
Returns:
intrpf (function): interpolating function giving log Inu for a given log lambda
return_spectrum_E(z, E)[source]

Interpolates the HM12 tabulated spectrum in redshift at the requested energies.

Args:

z (float): requested redshift

E (array): requested energies

Returns:
Inu (array): specific intensity at requested energies
return_spectrum_lam(z, lam)[source]

Interpolates the HM12 tabulated spectrum in redshift at the requested wavelengths.

Args:

z (float): requested redshift

lam (array): requested wavelengths

Returns:

Inu (array): specific intensity at requested wavelengths
return_spectrum_nu(z, nu)[source]

Interpolates the HM12 tabulated spectrum in redshift at the requested frequencies.

Args:

z (float): requested redshift

nu (array): requested frequencies

Returns:
Inu (array): specific intensity at requested frequencies

Module contents

A package to handle models of the UV Background.