Bandpass¶
- class nyx.spectra.library.Bandpass[source]¶
Bases:
objectA filter transmission curve.
- Parameters:
wavelength (astropy.units.Quantity)
transmission (array-like)
Attributes Summary
Vega zero-point flux; downloads the Vega spectrum on first access.
Methods Summary
__call__(lam)Call self as a function.
from_SVO(filter_id[, cache])Fetch a filter curve from the SVO service, e.g.
"GAIA/GAIA3.G".integrate(wvls, flx)Photon-weighted band integral
\int lambda T(lambda) F(lambda) dlambda.magnitude(wvls, flx)Synthetic magnitude of flx in this band, against Vega.
Attributes Documentation
- vegazero¶
Vega zero-point flux; downloads the Vega spectrum on first access.
Methods Documentation
- classmethod from_SVO(filter_id, cache=True)[source]¶
Fetch a filter curve from the SVO service, e.g.
"GAIA/GAIA3.G".
- integrate(wvls, flx)[source]¶
Photon-weighted band integral
\int lambda T(lambda) F(lambda) dlambda.- Parameters:
wvls (astropy.units.Quantity) – Wavelengths of flx.
flx (astropy.units.Quantity) – Flux, broadcastable against wvls along its last axis.
- Return type:
- magnitude(wvls, flx)[source]¶
Synthetic magnitude of flx in this band, against Vega.
- Parameters:
wvls (astropy.units.Quantity)
flx (astropy.units.Quantity)
- Return type:
- classmethod __new__(*args, **kwargs)¶