Base class for a Spectral Element (e.g. Filter, Detector...).
|
|
__mul__(self,
other)
Permitted to multiply a SpectralElement by another SpectralElement,
or by a SourceSpectrum. |
source code
|
|
|
|
|
|
|
convert(self,
targetunits)
Spectral elements are not convertible. |
source code
|
|
|
|
__call__(self,
wavelengths)
This is where the throughput array is calculated for a given input
wavelength table. |
source code
|
|
|
|
taper(self)
Taper the spectrum by adding zeros to each end. |
source code
|
|
|
|
writefits(self,
filename,
clobber=True,
trimzero=True)
Write the bandpass to a FITS file. |
source code
|
|
|
|
resample(self,
resampledWaveTab)
Interpolate throughput given a wavelength array that is monotonically
increasing and the TabularSpectralElement object. |
source code
|
|
|
|
unitResponse(self)
Original implementation; correct only for the assumption that the
input 'unit spectrum' is in units of photlam. |
source code
|
|
|
|
calcUnitResponse(self,
fluxunits='photlam')
This is a method of the spectral element for the convenience of the
user, but the correct calculation of the unit response depends
entirely on the units, so delegate to the fluxunit's method. |
source code
|
|
|
|
calcTotalFlux(self,
inSpectrum)
Moved method from obsolete Magnitude class |
source code
|
|
|
|
|
|
|
|
|
|
GetThroughput(self)
Return the throughput for the internal wavetable |
source code
|
|
|
Inherited from Integrator:
trapezoidIntegration
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__init__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|