PyTracerLab.model.tracers module¶
Built-in tracer properties.
PyTracerLab ships the properties of common environmental tracers (half-life and whether the tracer is produced by decay). It does not ship tracer input records (e.g. tritium in precipitation); these have to be provided by the user.
The same table is used by the GUI.
- PyTracerLab.model.tracers.TRACERS: Dict[str, Dict[str, object]] = {'Carbon-14': {'half_life': 5700.0, 'production': False}, 'Helium (tritiogenic)': {'half_life': 12.32, 'production': True}, 'Krypton-85': {'half_life': 10.73, 'production': False}, 'Stable tracer (no decay)': {'half_life': 1000000000000.0, 'production': False}, 'Tritium': {'half_life': 12.32, 'production': False}}¶
Tracer properties keyed by the name used in the GUI.
half_lifeis given in years.productionisTruefor tracers that are produced by the decay of a parent tracer (e.g. tritiogenic helium); for these,half_lifeis the half-life of the parent and the model input is the parent’s input series.
- PyTracerLab.model.tracers.decay_constant(tracer: str, time_unit: str = 'year') float[source]¶
Return the decay constant of a built-in tracer.
- Parameters:
tracer (str) – Tracer name as listed in
TRACERS(e.g."Tritium") or a common abbreviation (e.g."3H","14C","85Kr"); case-insensitive. For tritiogenic helium the decay constant of the parent (tritium) is returned; use it together withproduction=TrueinModel.time_unit ({"year", "month", "day"}, optional) – Time unit of the returned constant. It must match the time unit of the model time step and of the mean travel time parameters.
- Returns:
Decay constant
ln(2) / half-lifein1 / time_unit.- Return type: