Package ivs :: Package sed :: Module builder :: Class SampleSEDs
[hide private]
[frames] | no frames]

Class SampleSEDs

source code


Class representing a list of SEDs.

Instance Methods [hide private]
 
__init__(self, targets, **kwargs)
Initialize a sample.
source code
 
__iter__(self)
Allow iteration over the SED instances.
source code
 
__len__(self)
The length of a SampleSEDs instance is the number SED instances.
source code
 
__getitem__(self, key)
Implements various ways to get individual seds.
source code
 
summarize(self) source code
 
get_data(self, source, photband, label=None)
Get all data on a particular passband from a particular source.
source code
 
get_confidence_interval(self, parameter='teff', mtype='igrid_search') source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, targets, **kwargs)
(Constructor)

source code 

Initialize a sample.

This can be done either with a list of IDs or with a list of SED instances. The SED must exist! That is, for each ID, there must be a phot or FITS file.

Overrides: object.__init__

__getitem__(self, key)
(Indexing operator)

source code 

Implements various ways to get individual seds.

Allows integer indexing, slicing, indexing with integer and boolean arrays.

get_data(self, source, photband, label=None)

source code 

Get all data on a particular passband from a particular source.

If label is not None, synthetic flux from a model will be added to the columns.