The SKIRT project
advanced radiative transfer for astrophysics
Functions
pts.storedtable.do.fsps_to_stored_table Namespace Reference

Convert FSPS-generated SED family to stored table format. More...

Functions

"Convert FSPS-generated SED family to stored table format" do ((str,"filepath pattern of the FSPS files to be converted") infilepath,(str,"filepath of the resulting stored table file") outfilepath)
 

Detailed Description

Convert FSPS-generated SED family to stored table format.

This script converts data representing a family of SEDs for single stellar populations generated by the FSPS code (see Conroy, Gunn, & White (2009, ApJ) and Conroy & Gunn (2010, ApJ)) to SKIRT stored table format. This enables users to generate customized FSPS SED families and use them with SKIRT.

The SKIRT FSPSSEDFamily class offers built-in FSPS SED families generated using the default MIST isochrones and the default MILES spectral libraries, excluding dust attenuation and emission as well as nebular emission, for each of the Salpeter, Chabrier and Kroupa IMFs. If one of these built-in SED families suits your use case, you don't need this script.

Users who need one or more FSPS SED families generated with other settings than the built-in families can use the SKIRT FileSSPSEDFamily class, after following the workflow described below to create the appropriate resources.

This script expects two arguments:

Note
The first argument must be included in quotes to keep the shell from expanding the asterisks into multiple file names. The pattern is used only for locating the files; the actual metallicity values are obtained from the file contents, and the files are automatically sorted as needed.