Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc authored Nov 6, 2020
1 parent 77cb6ca commit 901a658
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ python setup.py install
latitudes = pop.latitude_range()
longitudes = pop.longitude_range()
```
5. Sometimes you need to export your data as a table where each row contains the longitude, latitude and corresponding population of one particular grid cell. You can do this like so:
```python
from sedac_gpw_parser import population
pop = population.Population(country_id=250)
table = pop.as_list()
```
4. Note that `country_id=250` in the above example returns the data for *France*. If you want to know the `id` of a certain country you can use
```python
from sedac_gpw_parser import utils
Expand Down

0 comments on commit 901a658

Please sign in to comment.