Skip to content
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

Get the data from Gridded population of the world for Senegal #12

Open
bwicht opened this issue Nov 2, 2020 · 1 comment
Open

Get the data from Gridded population of the world for Senegal #12

bwicht opened this issue Nov 2, 2020 · 1 comment
Assignees

Comments

@bwicht
Copy link
Contributor

bwicht commented Nov 2, 2020

No description provided.

@fccoelho
Copy link
Collaborator

@bwicht , the data for all the world is already present on this geotiff

We also have age structured geotiffs here

The code for extracting the population for one country is

import georasters as gr
popdata = gr.from_file('../data/gpw-v4-population-count-rev11_2020_15_min_tif/gpw_v4_population_count_rev11_2020_15_min.tif')
population = popdata.map_pixel(pt.x,pt.y) #get  the population form the centroid pixel of the admin region

or in R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants