Package pysynphot :: Module newobservation :: Class Observation
[hide private]
[frames] | no frames]

Class Observation

source code


An Observation is the end point of a chain of spectral manipulation. The normal means of creating an Observation is by means of the .observe method on a SpectralElement.

Instance Methods [hide private]
 
__init__(self, spec, band, binset=None)
The normal means of producing an Observation is by means of the .observe() method on the spectral element.
source code
 
initbinset(self, binset=None) source code
 
initbinflux(self)
This routine performs the integration of the spectrum on the specified binned waveset.
source code
 
_getBinfluxProp(self) source code
 
__mul__(self, other)
Source Spectra can be multiplied, by constants or by SpectralElement objects.
source code
 
__rmul__(self, other) source code
 
__add__(self, other)
Source Spectra can be added.
source code
 
__radd__(self, other) source code
 
redshift(self, z)
Returns a new redshifted spectrum.
source code
 
writefits(self, fname, clobber=True, trimzero=True, binned=True)
All we really want to do here is flip the default value of 'binned' from the vanilla spectrum case.
source code
 
countrate(self, binned=True)
This is the calculation performed when the ETC invokes countrate.
source code
 
pivot(self)
This is the calculation performed when the ETC invokes calcphot.
source code
 
efflam(self)
Calculation performed based on observation.py _EfflamCalculator, which produces EFFLPHOT results!.
source code

Inherited from spectrum.CompositeSourceSpectrum: GetWaveSet, __call__, __str__

Inherited from spectrum.SourceSpectrum: convert, getArrays, integrate, renorm, setMagnitude

Inherited from spectrum.Integrator: trapezoidIntegration

Inherited from spectrum.Integrator (private): _columnsFromASCII

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

Properties [hide private]
  binflux
Flux on binned wavelength set property

Inherited from spectrum.SourceSpectrum: flux, wave

Inherited from object: __class__

Method Details [hide private]

__init__(self, spec, band, binset=None)
(Constructor)

source code 

The normal means of producing an Observation is by means of the .observe() method on the spectral element.

Overrides: object.__init__

initbinflux(self)

source code 

This routine performs the integration of the spectrum on the specified binned waveset. It uses the natural waveset of the spectrum in performing this integration.

__mul__(self, other)

source code 

Source Spectra can be multiplied, by constants or by SpectralElement objects.

Overrides: spectrum.SourceSpectrum.__mul__
(inherited documentation)

__rmul__(self, other)

source code 
Overrides: spectrum.SourceSpectrum.__rmul__

__add__(self, other)
(Addition operator)

source code 

Source Spectra can be added. Delegate the work to the CompositeSourceSpectrum class.

Overrides: spectrum.SourceSpectrum.__add__
(inherited documentation)

redshift(self, z)

source code 

Returns a new redshifted spectrum.

Overrides: spectrum.SourceSpectrum.redshift
(inherited documentation)

writefits(self, fname, clobber=True, trimzero=True, binned=True)

source code 

All we really want to do here is flip the default value of 'binned' from the vanilla spectrum case.

Overrides: spectrum.SourceSpectrum.writefits

countrate(self, binned=True)

source code 

This is the calculation performed when the ETC invokes countrate. Essentially it wants the effstim in counts. However, it also wants the pivot wavelength returned to it in the same call.

pivot(self)

source code 

This is the calculation performed when the ETC invokes calcphot. Does this need to be calculated on binned waveset, or may it be calculated on native waveset?


Property Details [hide private]

binflux

Flux on binned wavelength set property

Get Method:
_getBinfluxProp(self)