Package pysynphot :: Module spectrum :: Class SpectralElement
[hide private]
[frames] | no frames]

Class SpectralElement

source code

object --+    
         |    
Integrator --+
             |
            SpectralElement

Base class for a Spectral Element (e.g. Filter, Detector...).

Instance Methods [hide private]
 
__mul__(self, other)
Permitted to multiply a SpectralElement by another SpectralElement, or by a SourceSpectrum.
source code
 
__rmul__(self, other) 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
 
calcVegaFlux(self)
Moved method from obsolete Magnitude class.
source code
 
GetWaveSet(self) source code
 
GetThroughput(self)
Return the throughput for the internal wavetable
source code

Inherited from Integrator: trapezoidIntegration

Inherited from Integrator (private): _columnsFromASCII

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  wave = property(GetWaveSet, doc= 'Waveset for bandpass')
  throughput = property(GetThroughput, doc= 'Throughput for band...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__mul__(self, other)

source code 

Permitted to multiply a SpectralElement by another SpectralElement, or by a SourceSpectrum. In the former case we return a CompositeSpectralElement, while in the latter case a CompositeSourceSpectrum.

unitResponse(self)

source code 

Original implementation; correct only for the assumption that the input 'unit spectrum' is in units of photlam. Marked for deletion when calcUnitResponse is well tested.

calcVegaFlux(self)

source code 

Moved method from obsolete Magnitude class. Definitely need to fix up Vega handling here.


Class Variable Details [hide private]

throughput

Value:
property(GetThroughput, doc= 'Throughput for bandpass')