You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finite Amplitude Impulse-Response simple climate-carbon-cycle model
11
5
12
-
Installation
13
-
------------
14
-
15
-
#. Make sure you have Python 3.6+ and pip installed
16
-
#. From terminal/command prompt ``pip install fair``
17
-
18
-
Usage
19
-
-----
20
-
21
-
FaIR takes emissions of greenhouse gases, aerosol and ozone precursors,
22
-
and converts these into greenhouse gas concentrations, radiative forcing
23
-
and temperature change.
24
-
25
-
There are two ways to run FaIR:
26
-
27
-
#. Carbon dioxide emissions only with all other radiative forcings
28
-
specified externally (specify ``useMultigas=False`` in the call to
29
-
``fair_scm``);
30
-
#. All species included in the RCP emissions datasets, with, optionally,
31
-
solar and volcanic forcing still specified externally. For
32
-
convenience, the RCP datasets are provided in the RCP subdirectory
33
-
and can be imported:
34
-
35
-
::
6
+
This repo is a fork of the FAIR model maintained by the Climate Impact Lab for use in research and publications. For the official version of the FAIR model, see https://github.com/OMS-NetZero/FAIR.
36
7
37
-
from fair.forward import fair_scm
38
-
from fair.RCPs import rcp85
39
-
emissions = rcp85.Emissions.emissions
40
-
C,F,T = fair_scm(emissions=emissions)
41
-
42
-
The main engine of the model is the ``fair_scm`` function in
43
-
``forward.py``. This function can be imported into a Python script or
44
-
iPython session. The most important keyword to ``fair_scm`` is the
45
-
``emissions``. This should be either a (nt, 40) numpy array (in multigas
46
-
mode) or (nt,) numpy array (in CO2 only mode), where nt is the number of
47
-
model timesteps. The outputs are a tuple of ``(C, F, T)`` arrays which
48
-
are GHG concentrations ((nt, 31) in multigas mode, (nt,) in CO2-only
49
-
mode), forcing ((nt, 13) or (nt,)) and temperature change (nt,). The
50
-
index numbers corresponding to each species will be given in tables 1 to
51
-
3 of the revised version of the Smith et al. paper reference below (we
52
-
hope to make this object-oriented in the future). For now, note that the
53
-
input emissions follow the ordering of the RCP datasets, which are
54
-
included under ``fair/RCPs``, and the GHG concentrations output are in
55
-
the same order, except that we don't output the year, only use one
56
-
column for total CO2, and the short-lived species (input indices 5 to 11
57
-
inclusive) are not included, reducing the number of columns from 40 to
58
-
31. In multigas mode the forcing output indices are:
59
-
60
-
0. CO\ :sub:`2`\
61
-
1. CH\ :sub:`4`\
62
-
2. N\ :sub:`2`\ O
63
-
3. Minor GHGs (CFCs, HFCs etc)
64
-
4. Tropospheric ozone
65
-
5. Stratospheric ozone
66
-
6. Stratospheric water vapour from methane oxidation
67
-
7. Contrails
68
-
8. Aerosols
69
-
9. Black carbon on snow
70
-
10. Land use
71
-
11. Volcanic
72
-
12. Solar
73
-
74
-
75
-
For further information, see the example ipython notebook contained in
76
-
the GitHub repo at https://github.com/OMS-NetZero/FAIR.
77
-
78
-
References:
79
-
-----------
8
+
FAIR Model References:
9
+
---------------------
80
10
81
11
Smith, C. J., Forster, P. M., Allen, M., Leach, N., Millar, R. J.,
82
12
Passerello, G. A., and Regayre, L. A.: FAIR v1.3: A simple
@@ -88,15 +18,3 @@ modified impulse-response representation of the global near-surface air
88
18
temperature and atmospheric concentration response to carbon dioxide
0 commit comments