forked from ImperialCollegeLondon/covid19model
-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-french-regional-data.sh
21 lines (16 loc) · 1.16 KB
/
update-french-regional-data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Requires python 3
datadir="data/FRA/"
source_opencovid="https://raw.githubusercontent.com/opencovid19-fr/data/master/dist/chiffres-cles.csv"
source_INSEE_reg="https://raw.githubusercontent.com/scrouzet/covid19-incrementality/master/data/departements.csv"
source_INSEE_dep="https://raw.githubusercontent.com/scrouzet/covid19-incrementality/master/data/INSEE%20-%20year%20x%20dept%20x%20sex%20x%20age%20-%20population.csv"
source_GCMR="https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv"
# EHPAD source http://www.data.drees.sante.gouv.fr/ReportFolders/reportFolders.aspx
wget -O ${datadir}/opencovid19-fr-chiffres-cles.csv ${source_opencovid}
wget -O ${datadir}/population-fra-INSEE-region-departement.csv ${source_INSEE_reg}
wget -O ${datadir}/population-fra-INSEE-departement.csv ${source_INSEE_dep}
# Get google mobility data
wget -O data/Global_Mobility_Report.csv ${source_GCMR}
python3 data/extract_opencovidfr_2_ICL.py data/FRA/opencovid19-fr-chiffres-cles.csv all-france
python3 data/extract_opencovidfr_2_ICL.py data/FRA/opencovid19-fr-chiffres-cles.csv REG
python3 data/extract_opencovidfr_2_ICL.py data/FRA/opencovid19-fr-chiffres-cles.csv DEP