Skip to content

thedrdos/covid-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Geographical Maps of COVID19 Data With Time History

Main presentation page: https://covid-interactive-map.netlify.com

  • Interactive geographical heat map of the rate of virus spread
  • Granularity (for US, both state and county level)
  • Normalization with respect to population (crude measure of societal pressure)

Maps

Current Implementation

Code written in Python (and Javascript) to generate interactive html page.

The bash shell script code/run_full_map_site_update.sh runs all the necessary Python scripts/functions to generate the underlying data structures, maps, and html file/s. The scripts create files in an untracked subdirectory code/tmp_data/ and generates a runtime performance report. Roughly:

  • match_data_and_maps.py Updates the COVID data, loads geographical data, matches the naming and organizes in dictionaries, saves to temporary data files.
  • process_data_and_maps.py Processes the data, calculating rates, averages, normalizations, and adding current stats to the geographical data, saves to temporary data files.
  • make_external_datafiles.py Writes the compressed external datafiles.
  • map_4mon_external_data.py (Legacy) Make the USA Map with state and county data history.
  • map_4mon_standalone.py (Legacy) Make the offline version USA Map with state and county data history, truncates the data history.
  • map_US_PerMil.py Make the USA Map with state and county population normalized COVID data history.
  • map_World_PerMil.py Make the World Map with population normalized COVID data history.
  • map_graph_Custom.py Make the customizable and graph, with animation function.
  • map_graph_Custom.py Same but with the mobile option, with improved layout for mobile use.
  • make_website.py Makes the acompanying website.
  • Normally takes about 2-3min to run (2.2GHz Intel Core i7, 16GB 2400 DDR4)

Sources

Tasklist

  • Implement maps using external json files for data.
  • Generate a cumulative USA time history graph.
  • Fix/Workaround bug in Bokeh where patches with multiple polygons (NaN separated) seem to draw repeatedly (alpha will be wrong)
  • Make a world map similar to the states map/graph.
  • Incorporate additional data available for states
  • New map plot with customizable time history data graph.
  • Rework the data structures generation with multithreading.
  • Rework the data structures for efficiency and streamlining.
  • Make option to switch normalization on/off (sort of, the custom map effectively let you)

About

Produce interactive geographical maps of COVID19 data with time history

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages