yt.extensions.StarAnalysis.SpectrumBuilder.__init__

SpectrumBuilder.__init__(pf, bcdir='', model='chabrier')

Initialize the data to build a summed flux spectrum for a collection of stars using the models of Bruzual & Charlot (2003). This function loads the necessary data tables into memory and must be called before analyzing any star particles.

Parameters :

pf : EnzoStaticOutput object

bcdir : String

Path to directory containing Bruzual & Charlot h5 fit files.

model : String

Choice of Initial Metalicity Function model, ‘chabrier’ or ‘salpeter’. Default = ‘chabrier’.

Examples

>>> pf = load("RedshiftOutput0000")
>>> spec = SpectrumBuilder(pf, "/home/user/bc/", model="salpeter")

This Page