IntegrationFilter¶
- class beast.observationmodel.phot.IntegrationFilter(wavelength, transmit, name='')[source]¶
Bases:
objectClass filter
Define an integration filter from the range of integration
Constructor
Methods Summary
applyTo(slamb, sflux)Apply filter to a spectrum
getFlux()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()Methods Documentation
- applyTo(slamb, sflux)[source]¶
Apply filter to a spectrum
- Parameters:
slamb (ndarray) – spectrum wavelength definition domain
sflux (ndarray) – associated flux
- Returns:
flux – new spectrum values accounting for the filter
- Return type:
- getFlux()[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 – Energy of the spectrum within the filter
- Return type: