Package ComboCode :: Package cc :: Package data :: Module Sed :: Class Sed
[hide private]
[frames] | no frames]

Class Sed

source code


Tools for:

Instance Methods [hide private]
 
__init__(self, star_name, remove=[])
Initializing an Sed instance.
source code
 
setStarPars(self)
Set some standard stellar parameters such as Ak and galactic position.
source code
 
setData(self, **kwargs)
Select available data.
source code
 
readData(self)
Read the raw SED data.
source code
 
readPhotInfo(self, level=0.5)
Read the photometry band information associated with photometry of this SED.
source code
float
getAk(self, distance=None, map='marshall', law='Fitz2004Chiar2006')
Helper method to retrieve the Ak extinction magnitude for a given distance.
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, star_name, remove=[])
(Constructor)

source code 

Initializing an Sed instance.

Setting starting parameters from a star object.

Parameters:
  • star_name (string) - The star name of the object
  • remove (list[str]) - Photometry to be removed from the output file. e.g. ['WISE','DENIS']

    (default: [])

Overrides: object.__init__

setData(self, **kwargs)

source code 

Select available data.

Based on the data file types in Sed.dat and the available data files.

Also calls the buildPhotometry method to create a photometry file from the IvS Sed builder tool

Any keywords required for buildPhotometry can be passed here.

readPhotInfo(self, level=0.5)

source code 

Read the photometry band information associated with photometry of this SED.

Parameters:
  • level (float) - The level at which the cut off for significant transmission of the photometric bands is placed.

    (default: 0.5)

getAk(self, distance=None, map='marshall', law='Fitz2004Chiar2006')

source code 

Helper method to retrieve the Ak extinction magnitude for a given distance.

The Ak values are saved in the sed object, to cut down the overhead in subsequent calls.

The law and map have to be passed as well. Defaults are marshall and Fitz2004Chiar2006 respectively.

Parameters:
  • distance (float) - The distance to the source. If the default, the total extinction is calculated in given direction.

    (default: None)

  • map (str) - The galactic 3d extinction model.

    (default: 'marshall')

  • law (str) - The reddening law

    (default: 'Fitz2004Chiar2006')

Returns: float
The extinction magnitude in K-band for the requested distance.