Function reference · Live example
Spectral densities and quadrature on supplied wavelength and sky grids. Library version 0.1.
For scalar redshift
| Quantity | Formula |
|---|---|
| Dust transmission |
|
| Expected photons | |
| Energy flux in a band | |
| Sky density |
|
flatppl_compat = "0.1"
astro = load_module("main.flatppl")
rest_wavelength = astro.redshift_wavelength([4e-7, 5e-7], 0.2)
transmission = astro.dust_transmission([0.2, 0.1])
Use consistent units and aligned vectors. The spectrum and photometry example projects a supplied spectrum into photon counts.