29

GitHub - globalcitizen/2019-wuhan-coronavirus-data: 2019 Wuhan Coronavirus data...

 4 years ago
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

image

Sample visualization

image

image

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.

DXY

High level information without specific source URLs. However, this is updated frequently and appears to be the best available 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:
  • Add other sources, eg.

Links of note

Other projects


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK