-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process data at a finer spatial granularity #58
Comments
I think that the challenge is plotting on the map: we need to get the shape of each region / province. Maybe it's a geojson? Here is a discussion on US states in a world map: Based on the following documentation, the only predefined geometries are the countries and the US states: |
Currently taking a look at http://www.naturalearthdata.com/downloads/110m-cultural-vectors/ |
if we want a quick solution, what could be done would be to use the Lat / Lon info of the dataset to plot a scatter plot at each lat / lon tuple. no need for shape files there. Of course having the shapes is nicer but it's also more data for the whole page |
Natural Earth indeed has States/Provinces, but the question will still be if that matches the regions as provided in the data. Is there an example of the data? |
Thanks a lot for your input @jorisvandenbossche :-). An example of dataset is https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv |
Thanks for that link. So https://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/ has states and provinces shapes. I can take a look tomorrow if it is relatively straightforward to match those. |
Thanks for taking a look. The Johns Hopkins dataset (which we are using at the moment) only has province / state information for a handful of countries (it might change in the future)
So for now this correspondance must be checked for 8 countries. I'll try it with the US states (county-level information is great but state-level should be fine for now), since plotly's choropleth trace already knows the geometry of US states. |
Related to this: #79 . We can assume that county-based data are incomplete or not reliable, so let's not use them and focus on state-level data for the US. |
Also see CSSEGISandData/COVID-19#1250 |
In fact, regions info are only useful for Canada, Australia and China. For the other countries, regions correspond to overseas territories. |
The data from John Hopkins comes at the level of regions / province. We should ideally build the map at this level. Forecasting at this level would also be interesting, provided that there are enough cases (forecasting from few cases is unreliable).
This enhancement will require some work, but it seems a worthwhile addition to the site.
The text was updated successfully, but these errors were encountered: