GitHub - globalcitizen/2019-wuhan-coronavirus-data: 2019 Wuhan Coronavirus data...
source link: https://github.com/globalcitizen/2019-wuhan-coronavirus-data
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
2019 Wuhan Coronavirus data (2019-nCoV)
This public repository archives data over time from various public sources on the web.
Data is presented as timestamped CSV files, for maximum compatibility.
It is hoped that this data will be useful to those producing visualizations or analyses.
Code is included.
Sample animation
Sample visualization
Generates static SVGs. Currently color selection is quite bad based on a simple threshold algorithm. Source images were this one and this one.
Generating
China
For a China map, the following command sequence will grab data from DXY and render it.
cd data-sources/dxy/
./process-dxy
You now have timestamped JSON, CSV and SVG files in the data-sources/dxy/data/
subdirectory.
World
For a world map, the process is similar.
cd data-sources/bno/
./get-bno
./process-dno >data/sample.csv
../../../visualization/bno-world-svg/bno-world-csv2svg sample.csv
You now have a sample.svg
file which contains the visualized form of the CSV output showing the world.
Sources used
BNO
Includes detail on foreign sources, individual provincial update URLs. Updated once per day or so.
- Data is timestamped in US Eastern Standard Time (ET) timezone
- Direct link to latest data
DXY
High level information without specific source URLs. However, this is updated frequently and appears to be the best available data.
- Data is timestamped in Beijing (CST) timezone
- Direct link to latest data
TODO
- Add key to global view
- Better color selection (plan is to move from opaque fill color to changing the alpha/opacity/transparency level)
- Convert disparate data sources in to singular SQLite database
- Add cities (needs an improved visualization system)
- More visualization options:
- amcharts (icky licensing but looks cool)
- d3.js and d3-china-map (good option but possibly overkill)
- jvectormap and jvectormap china (good option but no cities)
- kartograph (good option)
- Add other sources, eg.
- English Wikipedia (although it generally lags DXY on updates, the summary table is good for international data citations)
- Tencent live monitoring page
Links of note
- Novel coronavirus 2019-nCoV: early estimation of epidemiological parameters and epidemic predictions (2020-01-23)
- Only 5% of cases are likely reported in official figures of confirmed cases.
Other projects
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK