Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

2019 Wuhan Coronavirus data (COVID-19 / 2019-nCoV)

License

NotificationsYou must be signed in to change notification settings

globalcitizen/2019-wuhan-coronavirus-data

Repository files navigation

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.

No longer updated

Please note this data is no longer updated. It substantially covers the significant period of growth of the virus in China and should be useful for historical analysis.

Sample animation

Shown here in GIF format. There is a better (smaller/higher resolution) webm format also generated.

image

Sample visualization

image

image

Generates static SVGs.

Source images wereChina_blank_province_map.svg(link) andBlankMap-World.svg(link).

Requirements

Unix-like OS with the dependencies installed (seeSoftware Dependencies). In practice that means macOS with brew, Linux or a BSD. Windows is unsupported.

Generating

China

For a China map, the following command sequence will grab data from DXY and render it.

./build china

You now have timestamped JSON, CSV and SVG files in thedata-sources/dxy/data/ subdirectory.

World

For a world map, the process is similar.Note that the BNO world data parser is currently broken and we have no plan to fix it.

./build world

You now have timestamped CSV and SVG files indata-sources/bno/data.

Software Dependencies

Probably an incomplete list:

  • bash
  • perl
  • php
  • imagemagick
  • gifsicle
  • ffmpeg
  • wget

TODO

Links of note

Other projects

How this was built (non-technical explanation)

This section is written for the curious / non-technical user.

The general approach to problems such as these is as follows:

  1. Gather the data
  2. Modify and store it
  3. Do something with it.

Gather the data

The area of programming surrounding gathering data from websites that were not explicitly designed for it is calledweb scraping.

In general, web scraping consists of making anHTTP (web) request to the website in question,parsing (or interpreting) the response, andextracting the data of interest. Thereafter some modification may be required.

Modify and store it

We translate some Chinese and English information (toponyms or geographic region names) in to a known format by matching against astatic database file for countries and asimilar file for regions in or near China.

We then store the data in various formats, mostlyCSV andJSON, which aretimestamped in amost to least significance format, inspired by theISO 8601 standard, to aid insorting.

Do something with it

Finally, we further interpret and process the data in two stages.

Static image generation

First, we transform some referenceSVG maps gathered fromWikimedia Commons by applying the data we have captured.

Combine in to an animation

Finally we animate multiple such resulting images in to two formats,animated GIF and the greatly superior and far more modernwebm container format withVP9 encoding. This is done using the open source toolsimagemagick andffmpeg.

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp