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

Class TabularSpectralElement

source code


bandpass = FileBandpass(FITS or ASCII filename, thrucol= name of column containing throughput values (for FITS tables only)

Instance Methods [hide private]
 
__init__(self, fileName=None, thrucol='throughput')
__init__ takes a character string argument that contains the name of the file with the spectral element table.
source code
 
_reverse_wave(self) source code
 
__str__(self)
str(x)
source code
 
ToInternal(self)
Convert wavelengths to the internal representation of angstroms..
source code
 
_readASCII(self, filename)
Ascii files have no headers.
source code
 
_readFITS(self, filename, thrucol='throughput') source code
 
getHeaderKeywords(self, header)
This is a placeholder for subclasses to get header keywords without having to reopen the file again.
source code

Inherited from SpectralElement: GetThroughput, GetWaveSet, __call__, __mul__, __rmul__, convert, fwhm, resample, sample, taper, unitResponse, validate_units, writefits

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 SpectralElement: throughput, wave

Inherited from object: __class__

Method Details [hide private]

__init__(self, fileName=None, thrucol='throughput')
(Constructor)

source code 

__init__ takes a character string argument that contains the name of the file with the spectral element table.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

ToInternal(self)

source code 

Convert wavelengths to the internal representation of angstroms..

Overrides: SpectralElement.ToInternal

_readASCII(self, filename)

source code 

Ascii files have no headers. Following synphot, this routine will assume the first column is wavelength in Angstroms, and the second column is throughput (dimensionless).