synthesizer.parametric.metal_dist¶
A module for creating and manipulating metallicity distributions.
- NOTE: This module is imported as ZDist in parametric.__init__ enabling the
syntax shown below.
Example usage:
from synthesizer.parametric import ZDist
print(ZDist.parametrisations)
metal_dist = ZDist.DeltaConstant(…) metal_dist = ZDist.Normal(…)
metal_dist.get_dist_weight(metals)
Classes
- class synthesizer.parametric.metal_dist.Common(name, **kwargs)[source]¶
The parent class for all ZDist parametrisations.
- name¶
The name of this ZDist. This is set by the child and encodes the type of the metallicity distribution. Possible values are defined in parametrisations above.
- Type:
string
- parameters¶
A dictionary containing the parameters of the model.
- Type:
dict
Examples using synthesizer.parametric.metal_dist.Common
¶

Demonstrate the dense basis approach for describing the SFZH

An example showing how to scale a galaxy’s mass by luminosity/flux.
- class synthesizer.parametric.metal_dist.DeltaConstant(metallicity=None, log10metallicity=None)[source]¶
A single metallicity “distribution”.
- metallicity_¶
The single (linear) metallicity for all stellar mass in the distribution.
- Type:
float
- log10metallicity_¶
The log base 10 of metallicity.
- Type:
float
Examples using synthesizer.parametric.metal_dist.DeltaConstant
¶

Demonstrate the dense basis approach for describing the SFZH
Examples using synthesizer.parametric.metal_dist.Normal
¶

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