uvex_transients.utils.phot_utils#
Photometry utilities: bandpasses as arrays, AB magnitudes, and integrating a spectrum over bands.
Attributes
The zero-point flux density of the AB magnitude system, in erg/s/cm^2/Hz. |
|
Default spacing of the rest-frame frequency grid in \(\ln\nu\). |
Functions
|
Build the frequency grid and weights that integrate a luminosity density over a band. |
|
Evaluate the rest-frame luminosity in a band for each of many draws, on a grid of times. |
|
Build the weights that turn rest-frame luminosity densities into band-averaged ones, for every band and redshift. |
|
Return a bandpass's frequencies and its throughput there, in the order of its wavelength table. |
|
Choose how many draws to evaluate per step, so that the largest intermediate array is about 32 MB. |
|
Return the throughput-weighted mean frequency of a bandpass: \(\int\nu\,T\,d\nu/\int T\,d\nu\). |
|
Return the equivalent width, in frequency, of a bandpass. |
|
Convert a flux density to an AB magnitude. |
|
Return the coefficient converting a bare number in |
|
Evaluate the SED for some draws and apply frequency weights. |
|
Convert a band luminosity to an absolute AB magnitude, by the distance modulus of a flat spectrum. |
|
Average a flux density over a band, weighting by photon counts: \(\int F_\nu T\,d\nu/\nu\,/\int T\,d\nu/\nu\). |
|
Return a bandpass's frequencies, increasing, and its throughput there relative to the peak. |
|
Reduce bandpasses to the |
|
Build the uniform-in-\(\ln\nu\) rest-frame grid that covers every band at every redshift. |