Quickstart Guide

This guide is meant to help you quickly get up and running with DSPS. You can find more in-depth information in the Tutorials section of the documentation.

Downloading the default SED Library

The basis of DSPS predictions for the SED of a galaxy is an underlying spectral library of simple stellar populations (SSPs). You can download the default SEDs used by DSPS at this URL.

Once you have downloaded these data, you can load them using the following convenience function:

>>> from dsps import load_ssp_templates
>>> ssp_data = load_ssp_templates(fn="/path/to/dsps/data/fname.h5")

See Configuring your default DSPS data location for instructions on how to set a default location for your DSPS data, including both your SSP library as well as filter transmission curves.

There are many other sources of SED libraries that are publicly available, and you can use DSPS with whatever SED library is most appropriate for your science application. See Using Alternative SED libraries for further information.

Demo Notebook

Once you’re set up with an SSP library, you can follow the notebook below for a code demo showing how to use the core functions in DSPS.