Filter¶

class
beast.observationmodel.phot.
Filter
(wavelength, transmit, name='')[source]¶ Bases:
object
Class filter Define a filter by its name, wavelength and transmission
Constructor
Methods Summary
__call__
(self, slamb, sflux)Call self as a function. applyTo
(self, slamb, sflux)Apply filter to a spectrum getFlux
(self, slamb, sflux)Integrate the flux within the filter and return the integrated energy If you consider applying the filter to many spectra, you might want to consider extractSEDs. info
(self)Methods Documentation

applyTo
(self, slamb, sflux)[source]¶ Apply filter to a spectrum
Parameters:  slamb: ndarray
spectrum wavelength definition domain
 sflux: ndarray
associated flux
Returns:  flux: float
new spectrum values accounting for the filter

getFlux
(self, slamb, sflux)[source]¶ Integrate the flux within the filter and return the integrated energy If you consider applying the filter to many spectra, you might want to consider extractSEDs.
Parameters:  slamb: ndarray(dtype=float, ndim=1)
spectrum wavelength definition domain
 sflux: ndarray(dtype=float, ndim=1)
associated flux
Returns:  flux: float
Energy of the spectrum within the filter
