synthesizer.emission_models.stellar.models

A submodule containing the definitions of common stellar emission models.

This module contains the definitions of commoon stellar emission models that can be used “out of the box” to generate spectra from components or as a foundation to work from when creating more complex models.

Example usage:

# Create a simple emission model
model = TotalEmission(
    grid=grid,
    dust_curve=dust_curve,
    dust_emission_model=dust_emission_model,
    fesc=0.0,
)

# Generate the spectra
spectra = stars.get_spectra(model)

Classes

class synthesizer.emission_models.stellar.models.EmergentEmission(grid, dust_curve=None, apply_to=None, fesc='fesc', fesc_ly_alpha='fesc_ly_alpha', label='emergent', attenuated=None, escaped=None, **kwargs)[source]

An emission model that defines the emergent emission.

This defines combination of the attenuated and escaped emission components to produce the emergent emission.

This is a child of the EmissionModel class for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

dust_curve

The dust curve to use.

Type:

AttenuationLaw

apply_to

The emission model to apply the dust to.

Type:

EmissionModel

label

The label for this emission model.

Type:

str

class synthesizer.emission_models.stellar.models.IncidentEmission(grid, label='incident', **kwargs)[source]

An emission model that extracts the incident radiation field.

This defines an extraction of key “incident” from a SPS grid.

This is a child of the EmissionModel class for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

label

The label for this emission model.

Type:

str

extract

The key to extract from the grid.

Type:

str

Examples using synthesizer.emission_models.stellar.models.IncidentEmission

Camels example

Camels example

Parametric Young Stars Example

Parametric Young Stars Example

Aperture Mask Example

Aperture Mask Example

Image addition example

Image addition example

Plot delta_lambda for a grid.

Plot delta_lambda for a grid.

Demonstrate the dense basis approach for describing the SFZH

Demonstrate the dense basis approach for describing the SFZH

Plot equivalent width for UV indices

Plot equivalent width for UV indices

Generate parametric galaxy SED

Generate parametric galaxy SED

Compare SPS grid assignment methods

Compare SPS grid assignment methods

Compare parametric and particle SEDs

Compare parametric and particle SEDs

Create sampled SED

Create sampled SED
class synthesizer.emission_models.stellar.models.IntrinsicEmission(grid, label='intrinsic', fesc_ly_alpha='fesc_ly_alpha', reprocessed=None, **kwargs)[source]

An emission model that defines the intrinsic emission.

This defines a combination of the reprocessed and escaped emission.

This is a child of the EmissionModel class for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

label

The label for this emission model.

Type:

str

combine

The emission models to combine.

Type:

list

class synthesizer.emission_models.stellar.models.NebularContinuumEmission(grid, label='nebular_continuum', **kwargs)[source]

An emission model that extracts the nebular continuum emission.

This defines an extraction of key “nebular_continuum” from a SPS grid.

This is a child of the EmissionModel class for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

label

The label for this emission model.

Type:

str

extract

The key to extract from the grid.

Type:

str

class synthesizer.emission_models.stellar.models.NebularEmission(grid, label='nebular', fesc_ly_alpha='fesc_ly_alpha', fesc='fesc', nebular_line=None, nebular_continuum=None, **kwargs)[source]

An emission model that combines the nebular emissions.

This defines a combination of the nebular continuum and line emission components.

This is a child of the EmissionModel class for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

label

The label for this emission model.

Type:

str

combine

The emission models to combine.

Type:

list

Examples using synthesizer.emission_models.stellar.models.NebularEmission

Camels example

Camels example

Generating Lines from a Parametric Galaxy

Generating Lines from a Parametric Galaxy

Plot velocity broadened spectra

Plot velocity broadened spectra
class synthesizer.emission_models.stellar.models.NebularLineEmission(grid, label='nebular_line', fesc_ly_alpha='fesc_ly_alpha', fesc='fesc', **kwargs)[source]

An emission model for the nebular line emission.

This defines the luminosity contribution of the lines to the total nebular output.

This is a child of the EmissionModel class; for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

label

The label for this emission model.

Type:

str

extract

The key to extract from the grid.

Type:

str

class synthesizer.emission_models.stellar.models.ReprocessedEmission(grid, label='reprocessed', fesc='fesc', fesc_ly_alpha='fesc_ly_alpha', nebular=None, transmitted=None, **kwargs)[source]

An emission model that combines the reprocessed emission.

This defines a combination of the nebular and transmitted components.

This is a child of the EmissionModel class for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

label

The label for this emission model.

Type:

str

combine

The emission models to combine.

Type:

list

Examples using synthesizer.emission_models.stellar.models.ReprocessedEmission

Camels example

Camels example

Create image example

Create image example

Plot equivalent width for UV indices

Plot equivalent width for UV indices

Generate parametric galaxy SED

Generate parametric galaxy SED
class synthesizer.emission_models.stellar.models.TotalEmission(grid, dust_curve, dust_emission_model=None, label='total', fesc='fesc', fesc_ly_alpha='fesc_ly_alpha', **kwargs)[source]

An emission model that defines the total emission.

This defines the combination of the emergent and dust emission components to produce the total emission.

This is a child of the EmissionModel class for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

dust_curve

The dust curve to use.

Type:

AttenuationLaw

dust_emission_model

The dust emission model to use.

Type:

synthesizer.dust.EmissionModel

label

The label for this emission model.

Type:

str

fesc

The escape fraction of the emission.

Type:

float

Examples using synthesizer.emission_models.stellar.models.TotalEmission

Plot line of sight diagnostics

Plot line of sight diagnostics
class synthesizer.emission_models.stellar.models.TransmittedEmission(grid, label='transmitted', fesc='fesc', related_models=(), **kwargs)[source]

An emission model that extracts the transmitted radiation field.

This defines 3 models when fesc > 0.0:
  • An extraction of the key “transmitted” from a SPS grid.

  • A transformed emission, for the transmitted radiation field accounting for the escape fraction.

  • A transformed emission, for the escaped radiation field accounting for the escape fraction.

If fesc = 0.0 then there will only be the extraction model.

This is a child of the EmissionModel class for a full description of the parameters see the EmissionModel class.

grid

The grid object to extract from.

Type:

synthesizer.grid.Grid

label

The label for this emission model.

Type:

str

extract

The key to extract from the grid.

Type:

str

fesc

The escape fraction of the emission.

Type:

float

Examples using synthesizer.emission_models.stellar.models.TransmittedEmission

Compare Single star particle to instantaneous SFZH

Compare Single star particle to instantaneous SFZH