Skip to content

Commit 61fa04e

Browse files
lukruhbettina-gier
andauthored
Update and combine drought diagnostics and recipes (#3907)
Co-authored-by: Bettina Gier <[email protected]>
1 parent cfa4a6b commit 61fa04e

32 files changed

+3069
-919
lines changed
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
.. _api.esmvaltool.diag_scripts.droughts:
3+
4+
Drought Diagnostics
5+
===================
6+
7+
The droughts module contains diagnostics for calculation and plotting of drought
8+
indices and metrics. A general overview is given on the
9+
:ref:`Droughts documentation page <recipes_droughts>`.
10+
11+
12+
Diagnostic scripts
13+
------------------
14+
15+
.. toctree::
16+
:maxdepth: 1
17+
18+
esmvaltool.diag_scripts.droughts/collect_drought
19+
esmvaltool.diag_scripts.droughts/diffmap
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
.. _api.esmvaltool.diag_scripts.droughts.collect_drought:
3+
4+
Drought Metrics following Martin (2018)
5+
=======================================
6+
7+
.. automodule:: esmvaltool.diag_scripts.droughts.collect_drought
8+
:no-members:
9+
:no-inherited-members:
10+
:no-show-inheritance:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
.. _api.esmvaltool.diag_scripts.droughts.diffmap:
3+
4+
Difference Maps
5+
===============
6+
7+
.. automodule:: esmvaltool.diag_scripts.droughts.diffmap
8+
:no-members:
9+
:no-inherited-members:
10+
:no-show-inheritance:

doc/sphinx/source/api/esmvaltool.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Diagnostic Scripts
2323
.. toctree::
2424
:maxdepth: 1
2525

26+
esmvaltool.diag_scripts.droughts
2627
esmvaltool.diag_scripts.emergent_constraints
2728
esmvaltool.diag_scripts.monitor
2829
esmvaltool.diag_scripts.ocean

doc/sphinx/source/recipes/recipe_consecdrydays.rst renamed to doc/sphinx/source/recipes/droughts/recipe_consecdrydays.rst

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,37 @@ user defined number of days.
1919
Available recipes and diagnostics
2020
---------------------------------
2121

22-
Recipes are stored in recipes/
22+
Recipes are stored in recipes/droughts/
2323

24-
* recipe_consecdrydays.yml
24+
* recipe_cdd.yml
2525

26-
Diagnostics are stored in diag_scripts/droughtindex/
26+
Diagnostics are stored in diag_scripts/droughts/
2727

28-
* diag_cdd.py: calculates the longest period of consecutive dry days, and
29-
the frequency of dry day periods longer than a user defined length
28+
* cdd.py: calculates the longest period of consecutive dry days, and
29+
the frequency of dry day periods longer than a user defined length
3030

3131

3232
User settings in recipe
3333
-----------------------
3434

35-
#. Script diag_cdd.py
35+
Script cdd.py
36+
~~~~~~~~~~~~~~~~~~
3637

37-
*Required settings (script)*
38+
plim: float
39+
limit for a day to be considered dry [mm/day]
3840

39-
* plim: limit for a day to be considered dry [mm/day]
41+
frlim: int
42+
the shortest number of consecutive dry days for entering statistic on
43+
frequency of dry periods.
4044

41-
* frlim: the shortest number of consecutive dry days for entering statistic on frequency of dry periods.
45+
Under ``plot``:
4246

43-
*Optional settings (script)*
47+
cmap: str, optional
48+
the name of a colormap. cmocean colormaps are also supported.
4449

45-
Under ``plot``:
46-
47-
* cmap: the name of a colormap. cmocean colormaps are also supported.
48-
49-
* other keyword arguments to :func:`esmvaltool.diag_scripts.shared.plot.global_pcolormesh` can also be supplied.
50+
other keyword arguments to
51+
:func:`esmvaltool.diag_scripts.shared.plot.global_pcolormesh` can also be
52+
supplied.
5053

5154
Variables
5255
---------
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
.. _recipes_martin18grl:
2+
3+
Drought characteristics following Martin (2018)
4+
===============================================
5+
6+
Overview
7+
--------
8+
9+
Following `Martin (2018)`_ drought characteristics are calculated based on the
10+
standard precipitation index (SPI), see `Mckee et al. (1993)`_.
11+
These characteristics are frequency, average duration, SPI index and severity
12+
index of drought events.
13+
14+
.. _`Martin (2018)`: https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2018GL079807
15+
.. _`Mckee et al. (1993)`: https://climate.colostate.edu/pdfs/relationshipofdroughtfrequency.pdf
16+
17+
18+
Available recipes and diagnostics
19+
---------------------------------
20+
21+
Recipes are stored in ``recipes/droughts/``
22+
23+
* recipe_martin18grl.yml
24+
25+
Diagnostics are stored in ``diag_scripts/droughts/``
26+
27+
* :ref:`droughts/spei.R <recipes_spei>`
28+
* :ref:`droughts/collect_drought.py <api.esmvaltool.diag_scripts.droughts.collect_drought>`
29+
30+
Functions for metric calculation, plots and utility can be found in
31+
``droughts/collect_drought_func.py``.
32+
33+
User settings in recipe
34+
-----------------------
35+
36+
The recipe calculates SPI for two different time periods. The first part
37+
compares CMIP5 models with the CRU observational dataset. The second part
38+
compares the last 51 years of the 21st century with the historical period
39+
(1950-2000) for the RCP8.5 scenario.
40+
41+
The recipe can be run with different CMIP5 and CMIP6 models and one
42+
observational or reanalysis data set. The latter is specified as
43+
``reference_dataset`` in the recipe.
44+
45+
The distribution (``distribution: Gamma``) and the representative time scale
46+
(``smooth_month: 6``) can be changed by the user too. A complete list of
47+
settings and their description can be found in the
48+
:ref:`SPEI recipe <recipes_spei>` and
49+
:ref:`Collect drought API documentation <api.esmvaltool.diag_scripts.droughts.collect_drought>`.
50+
51+
52+
Variables
53+
---------
54+
55+
* *pr* (atmos, monthly, longitude, latitude, time)
56+
57+
58+
Observations and reformat scripts
59+
---------------------------------
60+
61+
*None*
62+
63+
64+
References
65+
----------
66+
67+
- Martin, E.R. (2018). Future Projections of Global Pluvial and Drought Event
68+
Characteristics. Geophysical Research Letters, 45, 11913-11920.
69+
- McKee, T. B., Doesken, N. J., & Kleist, J. (1993). The relationship of drought
70+
frequency and duration to time scales. In Proceedings of the 8th Conference on
71+
Applied Climatology (Vol. 17, No. 22, pp. 179-183). Boston, MA: American
72+
Meteorological Society.
73+
74+
Example plots
75+
-------------
76+
77+
.. _martin18grl_fig1:
78+
.. figure:: /recipes/figures/droughtindex/martin18grl_fig1.png
79+
:align: center
80+
:width: 80%
81+
82+
Global map of the percentage difference between multi-model mean of 15 CMIP
83+
models and the CRU data for the number of drought events [%] based on SPI.
84+
85+
.. _martin18grl_fig2:
86+
.. figure:: /recipes/figures/droughtindex/martin18grl_fig2.png
87+
:align: center
88+
:width: 80%
89+
90+
Global map of the percentage difference between multi-model mean for RCP8.5
91+
scenarios (2050-2100) runs and historical data (1950-2000) for 15 CMIP models
92+
for the number of drought events [%] based on SPI.

0 commit comments

Comments
 (0)