yt.analysis_modules.star_analysis.sfr_spectrum.StarFormationRate.write_out

StarFormationRate.write_out(name='StarFormationRate.out')[source]

Write out the star analysis to a text file name. The columns are in order.

The columns in the output file are:
  1. Time (yrs)
  2. Look-back time (yrs)
  3. Redshift
  4. Star formation rate in this bin per year (Msol/yr)
  5. Star formation rate in this bin per year per Mpc**3 (Msol/yr/Mpc**3)
  6. Stars formed in this time bin (Msol)
  7. Cumulative stars formed up to this time bin (Msol)
Parameters:

name : String

The name of the file to write to. Default = StarFormationRate.out.

Examples

>>> import yt
>>> from yt.analysis_modules.star_analysis.api import StarFormationRate
>>> ds = yt.load("Enzo_64/RD0006/RedshiftOutput0006")
>>> sp = ds.sphere([0.5, 0.5, 0.5], 0.1)
>>> sfr = StarFormationRate(ds, sp)
>>> sfr.write_out("stars-SFR.out")