question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Population-Density: Only list countries for download where data is available

See original GitHub issue

So far, we have listed all countries using the i18n-iso-countries npm package. However, there is no data available for some countries, e.g., due to bad satellite imagery. Facebook constantly improves its approach and data so that they might add new countries in the future. Therefore, we should use the AWS CLI to only list countries where data is available to avoid an error during the processing.

The command for that is:

aws s3 ls --no-sign-request s3://dataforgood-fb-data/csv/month=2019-06/

This has to adapt to the month partition dynamically.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tjukanovtcommented, Jun 11, 2021

Hi @mattigrthr! Have you thought about an option to user Kontur poulation grid instead? It contains GHSL and more and it is already aggregated to H3 grids.

Link to the data: https://data.humdata.org/dataset/kontur-population-dataset

0reactions
mattigrthrcommented, Dec 1, 2021

This issue has been resolved by switching the file download to the hdx Python package. The file downloader can be found in kuwala/common/python_utils/src/FileSelector.py.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Population density (people per sq. km of land area) | Data
All Countries and Economies ; Afghanistan · 60 ; Albania · 104 ; Algeria · 18 ; American Samoa · 231 ; Andorra...
Read more >
Comparison of the global population density - Worlddata.info
Rank Country Area Population Population per km² 1 Macao * 30 km² 0.69 M 22,585.8 2 Monaco 2.0 km² 0.04 M 18,161.4 3 Singapore 719 km²...
Read more >
World Cities Database - Simplemaps.com
Free and commercial world cities databases. Includes latitude, longitude, province, country and more. CSV, Excel, SQL formats.
Read more >
CSV format - Population Division | - the United Nations
Use the LocID, VarID and MidPeriod columns to link the data accross the different files, if necessary. Folder, Major Group, Sub Group, Files...
Read more >
Data types - WorldPop
Bespoke methods used to produce datasets for specific individual countries are available through the WorldPop Open Population Repository (WOPR) link below.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found