yt.analysis_modules.star_analysis.sfr_spectrum.SpectrumBuilder.write_out_SED

SpectrumBuilder.write_out_SED(name='sum_SED.out', flux_norm=5200.0)[source]

Write out the summed SED to a file. The file has two columns: 1) Wavelength (Angstrom) 2) Relative flux normalized to the flux at flux_norm. It also will attach to the SpectrumBuilder object an array f_nu which is the normalized flux, identical to the disk output.

Parameters:

name : String

Name of file to write to. Default = “sum_SED.out”

flux_norm : Float

Wavelength of the flux to normalize the distribution against. Default = 5200 Ang.

Examples

>>> import yt
>>> from yt.analysis_modules.star_analysis.api import SpectrumBuilder
>>> ds = yt.load("Enzo_64/RD0006/RedshiftOutput0006")
>>> spec = SpectrumBuilder(ds, "bc", model="salpeter")
>>> sp = ds.sphere([0.5, 0.5, 0.5], 0.1)
>>> spec.calculate_spectrum(data_source=sp, min_age = 1.e6)
>>> spec.write_out_SED(name = "SED.out", flux_norm = 6000.)