Bandpass

class nyx.spectra.library.Bandpass[source]

Bases: object

A filter transmission curve.

Parameters:

Attributes Summary

vegazero

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

__call__(lam)[source]

Call self as a function.

classmethod from_SVO(filter_id, cache=True)[source]

Fetch a filter curve from the SVO service, e.g. "GAIA/GAIA3.G".

Parameters:

filter_id (str)

Return type:

Bandpass

integrate(wvls, flx)[source]

Photon-weighted band integral \int lambda T(lambda) F(lambda) dlambda.

Parameters:
Return type:

astropy.units.Quantity

magnitude(wvls, flx)[source]

Synthetic magnitude of flx in this band, against Vega.

Parameters:
Return type:

numpy.ndarray

__init__(wvls, transmission)[source]
classmethod __new__(*args, **kwargs)