synthesizer.emission_models.operations

A submodule containing the operations performed by an EmissionModel.

An emission models inherits each of there opertaion classes but will only ever instantiate one. This is because operations are isolated to one per model. The correct operation is instantiated in EmissionMode._init_operations.

These classes should not be used directly.

Classes

class synthesizer.emission_models.operations.Combination(combine)[source]

A class to define the combination of spectra.

combine

A list of models to combine.

Type:

list

combine_to_hdf5(group)[source]

Save the combination model to an HDF5 group.

Examples using synthesizer.emission_models.operations.Combination

Aperture Mask Example

Aperture Mask Example

SC-SAM example

SC-SAM example

Parametric Young Stars Example

Parametric Young Stars Example

Camels example

Camels 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
class synthesizer.emission_models.operations.DustAttenuation(dust_curve, apply_dust_to, tau_v)[source]

A class to define the dust attenuation of spectra.

dust_curve

The dust curve to apply.

Type:

emission_models.attenuation.*

apply_dust_to

The model to apply the dust curve to.

Type:

EmissionModel

tau_v

The optical depth to apply. Can be a float, ndarray, or a string to a component attribute. Can also be a tuple combining any of these.

Type:

float/ndarray/str/tuple

attenuate_to_hdf5(group)[source]

Save the dust attenuation model to an HDF5 group.

Examples using synthesizer.emission_models.operations.DustAttenuation

Aperture Mask Example

Aperture Mask Example

SC-SAM example

SC-SAM example

Parametric Young Stars Example

Parametric Young Stars Example

Camels example

Camels 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
class synthesizer.emission_models.operations.Extraction(grid, extract, fesc, lam_mask)[source]

A class to define the extraction of spectra from a grid.

grid

The grid to extract from.

Type:

Grid

extract

The key for the spectra to extract.

Type:

str

fesc

The escape fraction.

Type:

float

extract_to_hdf5(group)[source]

Save the extraction model to an HDF5 group.

Examples using synthesizer.emission_models.operations.Extraction

Aperture Mask Example

Aperture Mask Example

SC-SAM example

SC-SAM example

Parametric Young Stars Example

Parametric Young Stars Example

Camels example

Camels 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
class synthesizer.emission_models.operations.Generation(generator, lum_intrinsic_model, lum_attenuated_model)[source]

A class to define the generation of spectra.

This can be used either to generate spectra for dust emission with the intrinsic and attenuated spectra used to scale the emission or to simply get a spectra from a generator.

generator

The emission generation model. This must define a get_spectra method.

Type:

EmissionModel

lum_intrinsic_model

The intrinsic model to use deriving the dust luminosity when computing dust emission.

Type:

EmissionModel

lum_attenuated_model

The attenuated model to use deriving the dust luminosity when computing dust emission.

Type:

EmissionModel

generate_to_hdf5(group)[source]

Save the generation model to an HDF5 group.

Examples using synthesizer.emission_models.operations.Generation

Aperture Mask Example

Aperture Mask Example

SC-SAM example

SC-SAM example

Parametric Young Stars Example

Parametric Young Stars Example

Camels example

Camels 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