Commonly used indices disagree about the relative effect of moisture on heat stress - code supplement
- 1. University College London
- 2. University of Washington
Description
Commonly used indices disagree about the relative effect of moisture on heat stress
This is a code archive supporting the article "Commonly used indices completely disagree about the relative effect of moisture on heat stress". The code contained in this archive is sufficient to reproduce the plots contained in the manuscript. The code runs in python.
Abstract
Irrigation and urban greening can mitigate extreme temperatures and reduce adverse health impacts from heat. However, some recent studies suggest these interventions could actually exacerbate heat stress by increasing humidity. These studies use different heat stress indices (HSIs), hindering intercomparisons of the relative roles of temperature and humidity.
Our novel method uses calculus of variations to compare the sensitivity of HSIs to temperature and humidity, independent of HSI units. We explain the properties of different HSIs and identify conditions under which they disagree. We highlight recent studies where the use of different HSIs could have led to opposite conclusions.
Our findings have significant implications for the evaluation of irrigation and urban greening as adaptive responses to overheating, and climate adaptation measures in general. We urge researchers to be critical in their choice of HSIs, especially in relation to health outcomes; our method provides a useful tool for making informed comparisons.
Files in this archive
- README.md
- basic_psychrometric_chart.py
- Code for defining psychrometric charts. These are re-usable utility functions. To actually produce the charts use psychrometric_charts.py.
- environment_dump.yml
- My environment exactly as-was at the point of archiving.
- environment_minimal.yml
- The minimum packages required to run the code.
- heat_index.py
- Codes for calculating heat index and some other heat stress indices.
- mtec_fields.py
- Codes for calculating 2D field of marginal temperature equivalent changes.
- psychrometric_charts.py
- Codes for producing the psychrometric charts appearing in the paper.
- utci.py
- Code for calculating the UTCI polynomial.
- This was based the code found in https://github.com/ecmwf-projects/thermofeel/blob/master/thermofeel/thermofeel.py, which has been modified under the Apache 2.0 license.
- Additionally we apply the correct limits of validity to the calculation, as described in https://doi.org/10.7163/GPol.2013.1
- wouters.py
- Code for producing comparisons of Wouters et al's results between different heat stress indices.
- wouters_table1.xlsx
- Table 1 from Wouters et al, enabling wouters.py.
One piece of nessary code is archived separately due to licensing requirements:
- WetBulb_jit.py
- Is archived at https://doi.org/10.5281/zenodo.7777698
- This contains code for calculating wet bulb temperature using the Davies-Jones method.
- It is based on the code https://github.com/jrbuzan/HumanIndexMod_2020 and is subject to the GNU GENERAL PUBLIC LICENSE.
How to run
These python scripts were run cell-by-cell in ipython, where the # %%
indicates a cell break. Usually running as a normal script will produce the same results, but the plots may not come out the same, as there is an implicit plt.show()
at the end of each cell.
Running the follow scripts is sufficient to reproduce all of the figures in the manuscript, the order is not important:
- mtec_fields.py
- psychrometric_charts.py
- wouters.py
Files
era5_limits.csv
Files
(122.2 kB)
Name | Size | Download all |
---|---|---|
md5:8c0e019e7823796598f038ddc26b88e9
|
13.2 kB | Download |
md5:38ee0590ee054a9ee8a1ab11cf5027a1
|
13.8 kB | Download |
md5:cd4cbdcbf8f67d02abe8f8d1fde5c18e
|
133 Bytes | Download |
md5:8253e597f94fbe999d2e3f59b4b261a5
|
539 Bytes | Preview Download |
md5:c4d921d9a003b08154bc3dc4df191ff9
|
3.5 kB | Download |
md5:29ab2791dae23991b6b74a3e4cc712c8
|
21.1 kB | Download |
md5:38cc0e47513b8206facbd9dc597d6691
|
6.4 kB | Download |
md5:f8db156c4dc33d63adeb2b3c8f84f995
|
3.3 kB | Preview Download |
md5:d8bb6ffb78d07e8a7306a199b1c48bdf
|
11.2 kB | Download |
md5:b0c397ac005c0d083c65fe5fe6ef0b33
|
11.1 kB | Download |
md5:719bea9e66bb3835534f29a55d3390b4
|
17.4 kB | Download |
md5:bf7bdd0732b3d013802c52c8ddedf360
|
9.4 kB | Download |
md5:3bf000c091611389c788667e9c5455e0
|
11.1 kB | Download |
Additional details
Funding
- Wellcome Trust
- Health and economic impacts of urban heat islands and greenspace 216035