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

Class ArraySpectralElement

source code


spec = ArraySpectrum(numpy array containing wavelength table, numpy array containing throughput table, waveunits, name=human-readable nickname for bandpass.

Instance Methods [hide private]
 
__init__(self, wave=None, throughput=None, waveunits='angstrom', name='UnnamedArrayBandpass')
Create a spectrum from arrays.
source code

Inherited from TabularSpectralElement: ToInternal, __str__, getHeaderKeywords

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, wave=None, throughput=None, waveunits='angstrom', name='UnnamedArrayBandpass')
(Constructor)

source code 

Create a spectrum from arrays.

Parameters:
  • wave - Wavelength array
  • throughput - Throughput array
  • waveunits (units.WaveUnits or subclass) - Units of wave
  • name (string) - Description of this spectral element
  • wave,throughput (Numpy array with numerical data)
Overrides: object.__init__