Giter Club home page Giter Club logo

ncov19-datapoints.github.io's Introduction

nCov19-DataPoints

Corona Virus Data Points - gather data and facts and make them visible.

Purpose

I found that most maps visualizing the Corona Virus data while very interesting did not help me judging the situation in local places - the resolution was too rough, and the numbers were in no relation to the population in the affected area.

So I set this map up with this repository.

Feedback and help

If you think something is wrong or missing from the map, please add it to the github issue tracker. There is still plenty of stuff to do.

If you would like your country or region to be added, you can help by finding the required sources of data - preferably csv files by an official source, but other people gathering and cleaning up data with clear source attribution are also welcome. Or, if you feel like it, take the existing Python scripts for countries as an example and create your own one and send me a pull request. All help is welcome!

I will add more detailed help soon, until then, just ask.

Repository structure

The structure of the repository is currently very simple:

  • index.html: the starting page if you go to http://ncov19-datapoints.github.io/, displaying the map with all the geojson files generating by the Python scripts for each country.
  • For each country representing a separate data set with separate data sources there is a folder containing the following files (as an example the links go to the UK files):
    • build.py: the script run each day at 20:00 UTC to update the ncov19map.js file.
      • There is a helper functions "generateOutput" in buildhelpers.py. Use that to save your files to make sure the map can use them even if there are any style changes etc. I will add a few checks in there later to make sure the data can be used by the map.
    • ncov19map.js: the file used by the map in "/Cov19.html"
    • ncov19.geojson contains the same data as the ncov19map.js file, just without the minor JavaScript additions which make the data digestible to the Cov19.html file.
    • ncov19.csv contains the raw nCov19 data, this is useful for debugging. Or maybe somebody else wants to do something with that data.

Thanks

Many thanks must go to the people gathering all the information which makes projects like this possible:

ncov19-datapoints.github.io's People

Contributors

ncov19-datapoints avatar

Stargazers

 avatar

Watchers

 avatar

ncov19-datapoints.github.io's Issues

Make map hierarchical

  • Add complete world map using JHU data.

  • Use more detailed data where available.

  • Use topojson insteead of geojson for the necessary map

  • What to do if the detailed data is only available for some parts and not at all for other?

  • What to do if the data for the parts is older/newer than the data for the whole?

  • What to do if the data for the parts is inconsistent with the data for the whole?

  • First solution: ignore any inconsistencies, display all detailed data which is available on top of the summary data (or better: use the summary data to fill out all the missing parts of the more detailed data).

Improve buildhelpers.generateOutput

The function needs plausibility checks etc to make it possible to figure out if a build.py script does the right thing.

Obviously there is also a lot of room to improve the general structure of the Python scripts (i. e. buildhelpers could import the individual build.py scripts and execute a set of functions).

Fix the "source" link in the info pane

While the "source" link itself works, it is impossible to click on it because the info pane is changed whenever the mouse cursor changes position. Doh!

Finish Austria

Austria has been started, but the data source is a HTML page and scraping is work!

USA

The US will most certainly be one of the most interesting cases to watch and learn from.

Interesting link which might yield the necessary data:
https://github.com/lazd/coronadatascraper

Note: it might be wise to do some sort of fallback solution depending how much data is available: state-based data (available from the JHU github page) if nothing with smaller granularity is available.

Visualize how much confirmed cases might reflect actual cases based on reported deaths

For a lot of countries we can assume that the number of deaths by infection with nCov-19 is a fairly accurate reflection of the actual situation.

However we cannot assume the same for the number of reported confirmed cases - coverage here clearly wildly differs between different countries, e. g. compare South Korea and Italy.

The number of reported deaths however gives a very rough idea about the number of actual cases around 12 days ago (the rough average time between infection and death, if death occurs, need to find the paper with that number again). Assuming a mortality rate of about 2% (as long as the health system is not overwhelmed that seems still high), we can make a back-of-the-envelope estimate, that 12 days ago, the number of actual infected people (+recovered people) was about 50 times the number of dead people until today.

If you take that simple measuring stick to Italy (or actually quite a lot of other countries), it is obvious that only a fraction of the actual cases have been diagnosed and reported as confirmed cases.

It would be nice to translate into some sort of confidence measure displayed on the map. Probably better not to use numbers, because this is all just an educated guess, but as a plausibility check it can inform people if the map reflects the actual situation on the ground.

Update the stats to take active/recovered cases into account

In a couple of weeks we'd only want to display active cases in the primary map. Another map with the total or recovered cases might still be interesting - which could be displayed as the % of the population still susceptible to an infection.

England data too coarse

Not quite sure if there is anything we can do about that, but quite a few of the regions reported in the English data set have close to a million people in them, obscuring any hot spots.

Spain

Unfortunately Spain looks like it might develop on similar lines as Italy. Which makes the map useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.