A tool for downloading Spanish COVID-19 and mobility data
Project description
flowmaps-data-downloader
A tool for downloading COVID-19 and mobility datasets for Spain.
The database integrates two main types of data:
-
Time dependent population mobility networks across Spain (provided by MITMA and INE)
-
Daily reports of COVID-19 cases in Spain, at different levels of spatial resolution (provided by the CNE and the different Autonomous Communities)
All the data records are associated with a specific area from a geographic layer:
- Geographic layers for Spain, in geojson format, at different levels of spatial resolution.
All the data has been gather from official access points.
More info about the data: https://flowmaps.life.bsc.es/flowboard/data
API: https://flowmaps.life.bsc.es/api
Contact us: https://flowmaps.life.bsc.es/flowboard/contact
Installation
Install using pip:
pip install flowmaps-data
Install manually:
Create virtual environment:
virtualenv env --python=python3
source env/bin/activate
Install python dependencies:
pip3 install -r requirements.txt
Usage
usage: flowmaps-data.py [-h] COLLECTION [list describe download]
examples:
# Geojson layers
flowmaps-data.py layers list
flowmaps-data.py layers describe --layer cnig_provincias --provenance
flowmaps-data.py layers describe --layer cnig_provincias --plot
flowmaps-data.py layers download --layer cnig_provincias
# Consolidated COVID-19 health data
flowmaps-data.py covid19 list
flowmaps-data.py covid19 describe --ev ES.covid_cpro
flowmaps-data.py covid19 download --ev ES.covid_cpro --output_file out.csv --output_type csv
# Population
flowmaps-data.py population list
flowmaps-data.py population describe --layer cnig_provincias
flowmaps-data.py population download --layer zbs_15 --output_file out.csv
# Origin-destination daily mobility (from MITMA)
flowmaps-data.py daily_mobility_matrix list
flowmaps-data.py daily_mobility_matrix describe
flowmaps-data.py daily_mobility_matrix download --source_layer cnig_provincias --target_layer cnig_provincias --date 2020-10-10 --output_file out.csv
# Daily zone movements (from MITMA)
flowmaps-data.py zone_movements list
flowmaps-data.py zone_movements describe
flowmaps-data.py zone_movements download --layer cnig_provincias --output_file out.csv --start-date 2020-10-10 --end-date 2020-10-10
# Raw datasets
flowmaps-data.py datasets list
flowmaps-data.py datasets describe --ev ES.covid_cpro
flowmaps-data.py datasets download --ev ES.covid_cpro --output_file out.csv --output_type csv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for flowmaps_data-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98509930c7233b88423eb5f9d0f8176228ae6b7356f10316758dd1112e6fd1c2 |
|
MD5 | 30501f4c002c5fe4f8d7dc3dda2c3dcf |
|
BLAKE2b-256 | 2d2880ff7c498652db5125fa20e4c4636de9df1d8fed3b760a8d3663e7d94470 |