yt.analysis_modules.sunrise_export.sunrise_exporter.export_to_sunrise

yt.analysis_modules.sunrise_export.sunrise_exporter.export_to_sunrise(ds, fn, star_particle_type, fc, fwidth, ncells_wide=None, debug=False, dd=None, **kwargs)[source]

Convert the contents of a dataset to a FITS file format that Sunrise understands.

This function will accept a dataset, and from that dataset construct a depth-first octree containing all of the data in the parameter file. This octree will be written to a FITS file. It will probably be quite big, so use this function with caution! Sunrise is a tool for generating synthetic spectra, available at http://sunrise.googlecode.com/ .

Parameters:

ds : Dataset

The dataset to convert.

fn : string

The filename of the output FITS file.

fc : array

The center of the extraction region

fwidth : array

Ensure this radius around the center is enclosed Array format is (nx,ny,nz) where each element is floating point in unitary position units where 0 is leftmost edge and 1 the rightmost.

Notes

Note that the process of generating simulated images from Sunrise will require substantial user input; see the Sunrise wiki at http://sunrise.googlecode.com/ for more information.