WorldPop provides estimates of numbers of people residing in each 100x100m grid cell for every low and middle income country.
Worldpop is an open access archive of spatial demographic datasets for Central and South America, Africa and Asia to support development, disaster response and health applications.
In the example the the WorldPop project population data is reduced to a single image.
// User specified parameters // create the vizualization parameters var viz = {min:0.0, max:60, palette:"F3FEEE,00ff04,075e09,0000FF,FDFF92,FF2700,FF00E7"}; // Data var worldpop = ee.ImageCollection("WorldPop/POP"); // Functions var meanPopulation = worldpop.reduce(ee.Reducer.mean()); print(meanPopulation) // Add to map Map.addLayer(meanPopulation,viz,"worldpop data");
Hi, how can we calculate the population of a particular country using the script?
My apologies I am quite new to scripting
LikeLike
you can use reduceRegion operation to get spatial statistics.
LikeLike