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

Camels example

Camels example

Parametric Young Stars Example

Parametric Young Stars Example

SC-SAM example

SC-SAM example

Aperture Mask Example

Aperture Mask Example

Photometry example

Photometry example

Plot spectra example

Plot spectra example

Image addition example

Image addition example

Create image example

Create image 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

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

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

Plot line of sight diagnostics

Plot line of sight diagnostics

Compare Single star particle to instantaneous SFZH

Compare Single star particle to instantaneous SFZH

Plot velocity broadened spectra

Plot velocity broadened spectra
class synthesizer.emission_models.operations.Extraction(grid, extract, vel_shift)[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

extract_to_hdf5(group)[source]

Save the extraction model to an HDF5 group.

Examples using synthesizer.emission_models.operations.Extraction

Camels example

Camels example

Parametric Young Stars Example

Parametric Young Stars Example

SC-SAM example

SC-SAM example

Aperture Mask Example

Aperture Mask Example

Photometry example

Photometry example

Plot spectra example

Plot spectra example

Image addition example

Image addition example

Create image example

Create image 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

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

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

Plot line of sight diagnostics

Plot line of sight diagnostics

Compare Single star particle to instantaneous SFZH

Compare Single star particle to instantaneous SFZH

Plot velocity broadened spectra

Plot velocity broadened spectra
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

Camels example

Camels example

Parametric Young Stars Example

Parametric Young Stars Example

SC-SAM example

SC-SAM example

Aperture Mask Example

Aperture Mask Example

Photometry example

Photometry example

Plot spectra example

Plot spectra example

Image addition example

Image addition example

Create image example

Create image 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

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

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

Plot line of sight diagnostics

Plot line of sight diagnostics

Compare Single star particle to instantaneous SFZH

Compare Single star particle to instantaneous SFZH

Plot velocity broadened spectra

Plot velocity broadened spectra
class synthesizer.emission_models.operations.Transformation(transformer, apply_to)[source]

A class to define the transformation of an emission.

A transformation can include attenuation of the spectra by an extinction curve, or it can involve any scaling of the emission.

A Transformer is needed to apply the transformation to the emission. This class must inherit from the Transformer base class (defined in emission_models/transformers/transformer.py) and must define the get_transformation method. This method should return an array the size of the input that can multiply the emission.

transformer

The transformer to apply to the emission.

Type:

Transformer

apply_to

The model to apply the transformer to.

Type:

EmissionModel

transformation_to_hdf5(group)[source]

Save the transformation model to an HDF5 group.

Examples using synthesizer.emission_models.operations.Transformation

Camels example

Camels example

Parametric Young Stars Example

Parametric Young Stars Example

SC-SAM example

SC-SAM example

Aperture Mask Example

Aperture Mask Example

Photometry example

Photometry example

Plot spectra example

Plot spectra example

Image addition example

Image addition example

Create image example

Create image 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

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

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

Plot line of sight diagnostics

Plot line of sight diagnostics

Compare Single star particle to instantaneous SFZH

Compare Single star particle to instantaneous SFZH

Plot velocity broadened spectra

Plot velocity broadened spectra