<a id="recipe-lifetime"></a>

# Lifetime

## Overview

The diagnostic calculates the lifetime of CH4 (or potentially other chemically
active trace gases) and is able to plot it in several different
representations.

## Available recipes and diagnostics

Recipes are stored in recipes/lifetime

* recipe_lifetime.yml

Diagnostics are stored in diag_scripts/lifetime/

* [lifetime.py](../api/esmvaltool.diag_scripts.lifetime.html.md#api-esmvaltool-diag-scripts-lifetime-lifetime)

### Recipe settings

A list of all possible configuration options that can be specified in the
recipe is given for each diagnostic individually (see previous section).

## Example plots

<a id="fig-1"></a>
![image](recipes/figures/lifetime/timeseries_ambiguous_dataset_ch4_TROP.png)

Time series of CH4 lifetime in the troposphere.
