synthesizer.components.stellar

A module defining general functionality for particle and parametric stars.

This should never be directly instantiated. Instead it is the parent class for particle.Stars and parametric.Stars and contains attributes and methods common between them. StarsComponent is a child class of Component.

Classes

class synthesizer.components.stellar.StarsComponent(ages, metallicities, **kwargs)[source]

The parent class for stellar components of a galaxy.

This class contains the attributes and spectra creation methods which are common to both parametric and particle stellar components.

This should never be instantiated directly.

ages

The age of each stellar particle/bin (particle/parametric).

Type:

Quantity

metallicities

The metallicity of each stellar particle/bin (particle/parametric).

Type:

Quantity

property log10ages

Return stellar particle ages in log (base 10).

Returns:

log10ages (array)

log10 stellar ages

property log10metallicities

Return stellar particle metallicities in log (base 10).

Returns:

log10metallicities (array)

log10 stellar metallicities

Examples using synthesizer.components.stellar.StarsComponent

Parametric Young Stars Example

Parametric Young Stars Example

Plot spectra example

Plot spectra example

Photometry example

Photometry example

Image addition example

Image addition example

Demonstrate the dense basis approach for describing the SFZH

Demonstrate the dense basis approach for describing the SFZH

Plot delta_lambda for a grid.

Plot delta_lambda for a grid.

Create image example

Create image example

Generating Lines from a Parametric Galaxy

Generating Lines from a Parametric Galaxy

Generate parametric observed SED

Generate parametric observed SED

An example showing how to scale a galaxy’s mass by luminosity/flux.

An example showing how to scale a galaxy's mass by luminosity/flux.

Generate parametric galaxy SED

Generate parametric galaxy SED

Plot equivalent width for UV indices

Plot equivalent width for UV indices

Create sampled SED

Create sampled SED

Compare parametric and particle SEDs

Compare parametric and particle SEDs

Compare SPS grid assignment methods

Compare SPS grid assignment methods

Compare Single star particle to instantaneous SFZH

Compare Single star particle to instantaneous SFZH

Plot line of sight diagnostics

Plot line of sight diagnostics

Plot line of sight optical depth calculations

Plot line of sight optical depth calculations

Rotating particle distributions

Rotating particle distributions