generated from worldbank/template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,34 @@ | ||
# Space2Stats | ||
|
||
Consistent, comparable, authoritative data describing sub-national variation is a constant point of complication for World Bank teams, our development partners, and client countries when assessing and investigating economic issues and national policy. This project will focus on creating and disseminating such data through aggregation of geospatial information at standard administrative divisions, and through the attribution of household survey data with foundational geospatial variables. | ||
Consistent, comparable, authoritative data describing sub-national variation is a constant point of complication for World Bank teams, our development partners, and client countries when assessing and investigating economic issues and national policy. This project will focus on creating and disseminating such data through aggregation of geospatial information at standard administrative divisions, and through the attribution of household survey data with foundational geospatial variables. | ||
|
||
## Getting Started Locally | ||
|
||
- Setup the database: | ||
``` | ||
docker-compose up -d | ||
``` | ||
|
||
- Create a `db.env` file: | ||
```.env | ||
DB_HOST=localhost | ||
DB_PORT=5439 | ||
DB_NAME=postgis | ||
DB_USER=username | ||
DB_PASSWORD=password | ||
DB_TABLE_NAME=space2stats | ||
``` | ||
|
||
- Load our dataset into the database | ||
``` | ||
./postgres/download_parquet.sh | ||
python postgres/chunk_parquet.py | ||
./postgres/load_parquet_chunks.sh | ||
``` | ||
|
||
> You can get started with a subset of data for NYC with `./load_nyc_sample.sh` which requires changing your `db.env` value for `DB_TABLE_NAME` to `space2stats_nyc_sample`. | ||
- Access your data using the Space2statS API! See the [example notebook](notebooks/space2stats_api_demo.ipynb). | ||
|
||
|
||
|