Skip to content

Situation update for Coronavirus disease 2019 in France, by departments

License

Notifications You must be signed in to change notification settings

Alex-bzh/covidep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covidep

Visualize the evolution of the mortality of the SARS-CoV-2 in France, since the start of confinement pronounced on March 18, 2020, department by department. The datasets also provide insight into the global capacity of intensive care units in hospital alongside with the extent of contamination through the incidence rate in the departments.

A demonstration is available at https://apps.roulois.fr/covidep/

How to run this application on local?

You need a Web server to launch the application. There are several ways to do so. On Linux and MacOS platforms, you can for example call python or php utilities:

$ python -m http.server 8080
$ php -S localhost:8080

Then, open your web browser and navigate to the URL http://localhost:8080.

How to update the data?

SPF (Santé publique France) provide updated data day by day through their information systems:

  1. on the first link, download the CSV file called donnees-hospitalieres-covid19-2021\*.csv
  2. on the second one, download the files sp-pe-std-quot-dep-2021\*.csv and sp-pe-std-quot-fra-2021\*.csv (useful to calculate the incidence rate)
  3. save it in the script folder
  4. run the script data_to_JSON.py
$ python data_to_JSON.py

This procedure will update the files in the data folder on which the application is based.

Credits

The borders of the departments come from the France GeoJSON project by Grégoire David.

All the data are provided by Santé publique France.