Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision a93e442dfb67053f3de2e74ee06ceb99e53a4524 authored by Pierre Masselot on 07 November 2024, 17:08:33 UTC, committed by Pierre Masselot on 07 November 2024, 17:08:33 UTC
Zenodo repo pub
1 parent a4f5dec
  • Files
  • Changes
  • 58173d1
  • /
  • README.md
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:a93e442dfb67053f3de2e74ee06ceb99e53a4524
directory badge
swh:1:dir:58173d1bde519d4f834511fd10e457d9220f5825
content badge
swh:1:cnt:b49cc720219792e04b9d92943e98f39268424d0b

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
README.md
# EUcityProj

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14004322.svg)](https://doi.org/10.5281/zenodo.14004322)

Fully replicable code performing the health impact projections reported in the paper

[citation]

> [!WARNING]
> Reproducing the full results in extremely intensive computationally and memory wise. It is recommended to test the scripts on a reduced number of cities, and with a reduced number of simulations (see the `nsim` parameter). Also consider changing the parameters `ncores` and `grpsize` that also control the speed and memory efficiency of the analysis. See script `01_pkg_params.R`

## Data

The input data necessary to run the analysis are stored on a dedicated [Zenodo repository](https://doi.org/10.5281/zenodo.14004322). Download the `data.zip` archive and extract the files into a `data` folder in the project directory. this can be performed directly from R (see the first script `01_pkg_params.R`).

Tables and plots can be replicated without running the analysis by downloading and extracting the files in `results_parquet` found on the [Zenodo repository](https://doi.org/10.5281/zenodo.14004322). See additional details below

## Scripts

The scripts are run in order. Scripts 01 to 03 run the main analysis with results saved at the end of `03_attribution.R`. Scripts 04 to 06 can then be ran by loading results saved beforehand.

| Script | Descriptions |
| :--- | :--- |
| `01_pkg_params.R` | Load the necessary R libraries and defines all the analysis parameters. Also contains some parameters related to parallelization of the main loop which should be considered carefully before running a full analysis |
| `02_prep_data.R` | Load and prepare data about cities, demographic projections, and global warming levels |
| `03_attribution.R` | Centrepiece of the analysis. Loops through cities and scenarios to perform the health impact projections. For each city, the code loads temperature series and exposure-response function data, and compute the health impact of temperature. Health impacts are then summarised and saved in a temporary folder. Results are then aggregated once the health impact for all the cities from a country or regions have been computed. Note that the loop is stratified into chunks to avoid storing too much intermediary data simulataneously. 
| `04_tables.R` | Produces the main table from the article. Note that this script will load previously saved results and can then be used without having to run the previous scripts.
| `05_plots.R` | Produces plots featured in the main text of the article.
| `06_plot_supp.R` | Produces Extended Data plots.
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API