Base class for the Source Spectrum object.
|
|
|
|
|
__sub__(self,
other)
Source Spectra can be subtracted, which is just another way of
adding. |
source code
|
|
|
|
__mul__(self,
other)
Source Spectra can be multiplied, by constants or by SpectralElement
objects. |
source code
|
|
|
|
|
|
|
|
|
|
getArrays(self)
Returns wavelength and flux arrays as a tuple, performing units
conversion. |
source code
|
|
|
|
|
|
|
|
|
|
validate_units(self)
Ensure that waveunits are WaveUnits and fluxunits are FluxUnits |
source code
|
|
|
|
writefits(self,
filename,
clobber=True,
trimzero=True,
binned=False,
precision=None,
hkeys=None)
Write the spectrum to a FITS file. |
source code
|
|
|
|
|
|
|
sample(self,
wave)
Return a flux array, in self.fluxunits, on the provided wavetable |
source code
|
|
|
|
|
|
|
redshift(self,
z)
Returns a new redshifted spectrum. |
source code
|
|
|
|
|
|
|
renorm(self,
RNval,
RNUnits,
band,
force=False)
Renormalize the spectrum to the specified value (in the specified
flux units) in the specified band. |
source code
|
|
|
|
|
|
Inherited from Integrator:
trapezoidIntegration,
validate_fluxtable,
validate_wavetable
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__init__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|