Skip to content

Commit 90999f4

Browse files
Merge pull request #2 from worldbank/remove-scaffolding
Remove template scaffolding
2 parents 9b458e3 + a5f222b commit 90999f4

38 files changed

+2878
-1707
lines changed

.env.example

Lines changed: 0 additions & 1 deletion
This file was deleted.

CITATION.cff

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
cff-version: 1.2.0
22
message: "Country borders or names do not necessarily reflect the World Bank Group’s official position. All maps are for illustrative purposes and do not imply the expression of any opinion on the part of the World Bank, concerning the legal status of any country or territory or concerning the delimitation of frontiers or boundaries."
3-
title: "World Bank Data Lab Project Template"
3+
title: "Geospatial tools from the World Bank GOST team"
44
authors:
55
- affiliation: World Bank
6-
family-names: Stefanini Vicente
7-
given-names: Gabriel
8-
orcid: https://orcid.org/0000-0001-6530-3780
6+
family-names: Chamorro
7+
given-names: Andres
98
keywords:
10-
- Open Science
11-
repository-code: https://github.com/worldbank/template/tree/main
9+
- Urban Analytics
10+
repository-code: https://github.com/worldbank/GOSTrocks

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# GOSTrocks
22

3-
[![CalVer](https://img.shields.io/badge/calver-YY.0M.MICRO-22bfda.svg)](https://calver.org)
4-
[![GitHub Release](https://img.shields.io/github/v/release/worldbank/template)](https://github.com/worldbank/template/releases)
5-
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/worldbank/template/main.svg)](https://results.pre-commit.ci/latest/github/worldbank/template/main)
6-
73
This repository includes support functions for a number of geospatial tools used by the Geospatial Operations Support Team (GOST) in the World Bank Data Group. The Notebooks folder contains examples using the various functions.
84

95
## Installation

docs/_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Book settings
22
title:
3-
author: Development Data Group
3+
author: Geospatial Operations Support Team (GOST)
44
logo: docs/images/logo.png
55
only_build_toc_files: false
66

77
repository:
8-
url: https://github.com/worldbank/template
8+
url: https://github.com/worldbank/GOSTrocks
99
branch: main
1010

1111
#######################################################################################
@@ -16,7 +16,7 @@ html:
1616
use_edit_page_button: true
1717
use_repository_button: true
1818
use_issues_button: true
19-
baseurl: https://worldbank.github.io/template
19+
baseurl: https://worldbank.github.io/GOSTrocks
2020
extra_footer: |
2121
<div>
2222
Country borders or names do not necessarily reflect the World Bank Group’s official position. All maps are for illustrative purposes and do not imply the expression of any opinion on the part of the World Bank, concerning the legal status of any country or territory or concerning the delimitation of frontiers or boundaries

docs/_toc.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,4 @@ parts:
55
- caption: Examples
66
numbered: True
77
chapters:
8-
- file: notebooks/world-bank-api.ipynb
9-
- file: notebooks/world-bank-package.ipynb
10-
- file: notebooks/nasa-apod.ipynb
11-
- file: notebooks/bibliography.ipynb
12-
- caption: Gallery
13-
chapters:
14-
- file: docs/gallery
15-
- caption: Additional Resources
16-
chapters:
17-
- url: https://datapartnership.org
18-
title: Development Data Partnership
19-
- url: https://wbdatalab.org
20-
title: World Bank Data Lab
21-
- url: https://www.worldbank.org/en/about/unit/unit-dec
22-
title: World Bank DEC
23-
- url: https://www.worldbank.org/en/research/dime
24-
title: World Bank DIME
8+
- file: notebooks/GOSTrocks_Usage.ipynb

docs/bibliography.bib

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +0,0 @@
1-
@book{WorldBank2021WorldDevelopmentReport,
2-
author = {{World Bank}},
3-
publisher = {World Bank},
4-
url = {http://hdl.handle.net/10986/35218},
5-
date = {2021},
6-
note = {License: CC BY 3.0 IGO},
7-
title = {{W}orld {D}evelopment {R}eport 2021 : {D}ata for {B}etter {L}ives},
8-
type = {World Development Report},
9-
year = {2021},
10-
}
11-
@book{WorldBank2022WorldDevelopmentReport,
12-
author = {{World Bank}},
13-
publisher = {World Bank},
14-
url = {http://hdl.handle.net/10986/36883},
15-
date = {2022},
16-
note = {License: CC BY 3.0 IGO},
17-
title = {{W}orld {D}evelopment {R}eport 2022 : {F}inance for an {E}quitable {R}ecovery},
18-
type = {World Development Report},
19-
year = {2022},
20-
},
21-
@book{WorldBank2023WorldDevelopmentReport,
22-
author = {{World Bank}},
23-
publisher = {World Bank},
24-
url = {https://openknowledge.worldbank.org/handle/10986/39696},
25-
date = {2023},
26-
note = {License: CC BY 3.0 IGO},
27-
title = {{W}orld {D}evelopment {R}eport 2021 : {M}igrants, {R}efugees, and {S}ocieties},
28-
type = {World Development Report},
29-
year = {2023},
30-
}
31-
@misc{sdgatlas2020,
32-
author = {Pirlea, A. F. and U. Serajuddin and D. Wadhwa and M. Welch and A. Whitby},
33-
publisher = {World Bank},
34-
url = {https://datatopics.worldbank.org/sdgatlas.},
35-
date = {2020},
36-
note = {License: CC BY 3.0 IGO},
37-
title = {{A}tlas of the {S}ustainable {D}evelopment {G}oals 2020: {F}rom {W}orld {D}evelopment {I}ndicators},
38-
year = {2020},
39-
}

docs/gallery.md

Lines changed: 0 additions & 114 deletions
This file was deleted.

docs/images/favicon.ico

-13.9 KB
Binary file not shown.

docs/images/logo.png

-40.4 KB
Loading

notebooks/CREAT_FATHOM_VRTs.ipynb

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"metadata": {},
88
"outputs": [],
99
"source": [
10-
"import sys, os, boto3\n",
11-
"from tqdm.notebooks import tqdm\n",
10+
"import os\n",
11+
"import boto3\n",
1212
"\n",
1313
"import pandas as pd\n",
1414
"from osgeo import gdal"
@@ -21,22 +21,22 @@
2121
"metadata": {},
2222
"outputs": [],
2323
"source": [
24-
"in_file_list = '/home/wb411133/temp/fathom_files.csv'\n",
24+
"in_file_list = \"/home/wb411133/temp/fathom_files.csv\"\n",
2525
"\n",
26-
"s3_bucket = 'wbg-geography01'\n",
27-
"s3_prefix = 'FATHOM/v2023/'\n",
28-
"out_prefix = 'FATHOM/vrts/'\n",
26+
"s3_bucket = \"wbg-geography01\"\n",
27+
"s3_prefix = \"FATHOM/v2023/\"\n",
28+
"out_prefix = \"FATHOM/vrts/\"\n",
2929
"\n",
3030
"in_files = pd.read_csv(in_file_list)\n",
31-
"s3 = boto3.resource('s3')\n",
31+
"s3 = boto3.resource(\"s3\")\n",
3232
"my_bucket = s3.Bucket(s3_bucket)\n",
3333
"\n",
34-
"return_period = '1000'\n",
35-
"defended = 'DEFENDED'\n",
34+
"return_period = \"1000\"\n",
35+
"defended = \"DEFENDED\"\n",
3636
"\n",
37-
"coastal_folder = f'GLOBAL-1ARCSEC-NW_OFFSET-1in{return_period}-COASTAL-{defended}-DEPTH-2020-PERCENTILE50-v3.0'\n",
38-
"fluvial_folder = f'GLOBAL-1ARCSEC-NW_OFFSET-1in{return_period}-FLUVIAL-{defended}-DEPTH-2020-PERCENTILE50-v3.0'\n",
39-
"pluvial_folder = f'GLOBAL-1ARCSEC-NW_OFFSET-1in{return_period}-PLUVIAL-{defended}-DEPTH-2020-PERCENTILE50-v3.0'"
37+
"coastal_folder = f\"GLOBAL-1ARCSEC-NW_OFFSET-1in{return_period}-COASTAL-{defended}-DEPTH-2020-PERCENTILE50-v3.0\"\n",
38+
"fluvial_folder = f\"GLOBAL-1ARCSEC-NW_OFFSET-1in{return_period}-FLUVIAL-{defended}-DEPTH-2020-PERCENTILE50-v3.0\"\n",
39+
"pluvial_folder = f\"GLOBAL-1ARCSEC-NW_OFFSET-1in{return_period}-PLUVIAL-{defended}-DEPTH-2020-PERCENTILE50-v3.0\""
4040
]
4141
},
4242
{
@@ -50,9 +50,7 @@
5050
"all_vals = []\n",
5151
"\n",
5252
"for obj in my_bucket.objects.filter(Prefix=os.path.join(s3_prefix, pluvial_folder)):\n",
53-
" all_vals.append(os.path.join('s3://', s3_bucket, obj.key))\n",
54-
" \n",
55-
" "
53+
" all_vals.append(os.path.join(\"s3://\", s3_bucket, obj.key))"
5654
]
5755
},
5856
{
@@ -1081,11 +1079,11 @@
10811079
"metadata": {},
10821080
"outputs": [],
10831081
"source": [
1084-
"#out_vrt = os.path.join('s3://', s3_bucket, out_prefix, f'{pluvial_folder}.vrt')\n",
1085-
"out_vrt = f'{pluvial_folder}.vrt'\n",
1086-
"vrt_options = gdal.BuildVRTOptions(resampleAlg='cubic', addAlpha=True)\n",
1082+
"# out_vrt = os.path.join('s3://', s3_bucket, out_prefix, f'{pluvial_folder}.vrt')\n",
1083+
"out_vrt = f\"{pluvial_folder}.vrt\"\n",
1084+
"vrt_options = gdal.BuildVRTOptions(resampleAlg=\"cubic\", addAlpha=True)\n",
10871085
"my_vrt = gdal.BuildVRT(out_vrt, all_vals, options=vrt_options)\n",
1088-
"my_vrt = None\n"
1086+
"my_vrt = None"
10891087
]
10901088
},
10911089
{

0 commit comments

Comments
 (0)