uvex_transients.utils.phot_utils.equivalent_bandwidth#
- uvex_transients.utils.phot_utils.equivalent_bandwidth(bandpass: SpectralElement, spectral_index: float = 0.0, reference_frequency: Quantity | None = None) Quantity[source]#
Return the equivalent width, in frequency, of a bandpass.
The width is \(\int(\nu/\nu_0)^\alpha\,T(\nu)/T_\mathrm{max}\,d\nu\).
For a spectrum \(L_\nu=L_{\nu_0}(\nu/\nu_0)^\alpha\) the luminosity in the band is \(L_{\nu_0}\,\Delta\nu\) erg/s, with \(\Delta\nu\) this width. Without an index it is the width of a top hat of the bandpass’s peak throughput that passes as much, which is the same at every \(\nu_0\). It is independent of how efficient the detector is.
- Parameters:
bandpass (
synphot.SpectralElement) – One of a detector’s bandpasses.spectral_index (
float, optional) – The index \(\alpha\). The default of 0 is a flat spectrum.reference_frequency (
Quantity, optional) – The frequency \(\nu_0\) at which the spectral luminosity is quoted. The default is the effective_frequency of the bandpass. It does not matter for a flat spectrum.
- Returns:
The width, in Hz.
- Return type: