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

Class FlatSpectrum

source code


spec = FlatSpectrum(Flux density, waveunits, fluxunits). Defines a flat spectrum in units of fluxunits.

Instance Methods [hide private]
 
__init__(self, fluxdensity, waveunits='angstrom', fluxunits='photlam')
All AnalyticSpectra must set wave & flux units; do it here.
source code
 
__str__(self)
str(x)
source code
 
__call__(self, wavelength)
Create a TabularSourceSpectrum, then use its __call__
source code
 
redshift(self, z)
Call the parent's method, which returns a TabularSourceSpectrum, then use its results to create a new FlatSpectrum with the correct value.
source code

Inherited from AnalyticSpectrum: GetWaveSet

Inherited from SourceSpectrum: __add__, __mul__, __rmul__, addmag, convert, getArrays, integrate, renorm, sample, setMagnitude, validate_units, writefits

Inherited from SourceSpectrum (private): _getFluxProp, _getWaveProp

Inherited from Integrator: trapezoidIntegration, validate_fluxtable, validate_wavetable

Inherited from Integrator (private): _columnsFromASCII

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

Properties [hide private]

Inherited from SourceSpectrum: flux, wave

Inherited from object: __class__

Method Details [hide private]

__init__(self, fluxdensity, waveunits='angstrom', fluxunits='photlam')
(Constructor)

source code 

All AnalyticSpectra must set wave & flux units; do it here.

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

redshift(self, z)

source code 

Call the parent's method, which returns a TabularSourceSpectrum, then use its results to create a new FlatSpectrum with the correct value.

Overrides: SourceSpectrum.redshift