GOSTrocks 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gostrocks-0.2.0/.github/ISSUE_TEMPLATE/bug_report.md +43 -0
- gostrocks-0.2.0/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- gostrocks-0.2.0/.github/ISSUE_TEMPLATE/peer_review.md +42 -0
- gostrocks-0.2.0/.github/dependabot.yml +6 -0
- gostrocks-0.2.0/.github/workflows/gh-pages.yml +31 -0
- gostrocks-0.2.0/.github/workflows/release.yml +52 -0
- gostrocks-0.2.0/.gitignore +95 -0
- gostrocks-0.2.0/.pre-commit-config.yaml +39 -0
- gostrocks-0.2.0/CITATION.cff +10 -0
- gostrocks-0.2.0/LICENSE +385 -0
- gostrocks-0.2.0/PKG-INFO +435 -0
- gostrocks-0.2.0/README.md +23 -0
- gostrocks-0.2.0/_static/custom.css +48 -0
- gostrocks-0.2.0/build_commands.txt +8 -0
- gostrocks-0.2.0/data/.gitkeep +0 -0
- gostrocks-0.2.0/docs/CODE_OF_CONDUCT.md +119 -0
- gostrocks-0.2.0/docs/CONTRIBUTING.md +93 -0
- gostrocks-0.2.0/docs/_config.yml +44 -0
- gostrocks-0.2.0/docs/_toc.yml +8 -0
- gostrocks-0.2.0/docs/bibliography.bib +0 -0
- gostrocks-0.2.0/docs/images/favicon.ico +0 -0
- gostrocks-0.2.0/docs/images/github-template-action-enable.png +0 -0
- gostrocks-0.2.0/docs/images/github-template-action.png +0 -0
- gostrocks-0.2.0/docs/images/github-template-create.png +0 -0
- gostrocks-0.2.0/docs/images/github-template-pages.png +0 -0
- gostrocks-0.2.0/docs/images/github-template.png +0 -0
- gostrocks-0.2.0/docs/images/logo.png +0 -0
- gostrocks-0.2.0/notebooks/.gitkeep +0 -0
- gostrocks-0.2.0/notebooks/AWS_Summarize.ipynb +346 -0
- gostrocks-0.2.0/notebooks/CREAT_FATHOM_VRTs.ipynb +2140 -0
- gostrocks-0.2.0/notebooks/FATHOM/Extract_flood_tiles.ipynb +242 -0
- gostrocks-0.2.0/notebooks/FATHOM/Generate_footprints.ipynb +1200 -0
- gostrocks-0.2.0/notebooks/FATHOM/Transfer_Data_AWS.ipynb +774 -0
- gostrocks-0.2.0/notebooks/FATHOM/Vizualize_Flood_types.ipynb +163 -0
- gostrocks-0.2.0/notebooks/GOSTrocks_Usage.ipynb +611 -0
- gostrocks-0.2.0/notebooks/TUT_DECAT_B_GeocodingExamples.ipynb +274 -0
- gostrocks-0.2.0/notebooks/TUT_GeoBoundaries.ipynb +534 -0
- gostrocks-0.2.0/notebooks/Untitled.ipynb +149 -0
- gostrocks-0.2.0/notebooks/ZON_DECAT_B_ZonalStatsNTLHarmonized.ipynb +224 -0
- gostrocks-0.2.0/notebooks/ZON_DECAT_NTL_from_AWS.ipynb +567 -0
- gostrocks-0.2.0/notebooks/metadata/META_DECAT_ExploringMetadataGeneration.ipynb +495 -0
- gostrocks-0.2.0/pyproject.toml +59 -0
- gostrocks-0.2.0/requirements.txt +22 -0
- gostrocks-0.2.0/src/GOSTrocks/__init__.py +7 -0
- gostrocks-0.2.0/src/GOSTrocks/_version.py +16 -0
- gostrocks-0.2.0/src/GOSTrocks/covid/DataDictionary_v2.json +348 -0
- gostrocks-0.2.0/src/GOSTrocks/covid/covid_data_extraction.py +690 -0
- gostrocks-0.2.0/src/GOSTrocks/covid/vulnerability_mapping.py +85 -0
- gostrocks-0.2.0/src/GOSTrocks/dataMisc.py +88 -0
- gostrocks-0.2.0/src/GOSTrocks/ghslMisc.py +69 -0
- gostrocks-0.2.0/src/GOSTrocks/infra/aggregator.py +224 -0
- gostrocks-0.2.0/src/GOSTrocks/infra/gsm_rasterizer.py +104 -0
- gostrocks-0.2.0/src/GOSTrocks/infra/infra_helper.py +19 -0
- gostrocks-0.2.0/src/GOSTrocks/infra/mapbox_helper.py +250 -0
- gostrocks-0.2.0/src/GOSTrocks/infra/process_flows.py +250 -0
- gostrocks-0.2.0/src/GOSTrocks/infra/rai_calculator.py +85 -0
- gostrocks-0.2.0/src/GOSTrocks/mapMisc.py +162 -0
- gostrocks-0.2.0/src/GOSTrocks/metadataMisc.py +304 -0
- gostrocks-0.2.0/src/GOSTrocks/misc.py +283 -0
- gostrocks-0.2.0/src/GOSTrocks/ntlMisc.py +173 -0
- gostrocks-0.2.0/src/GOSTrocks/osmMisc.py +390 -0
- gostrocks-0.2.0/src/GOSTrocks/rasterMisc.py +701 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug Report
|
|
3
|
+
about: Use to report a bug
|
|
4
|
+
title: ''
|
|
5
|
+
labels: bug
|
|
6
|
+
assignees: ''
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Bug Report
|
|
10
|
+
|
|
11
|
+
### Description
|
|
12
|
+
|
|
13
|
+
Provide a brief overview of the bug encountered. Describe the behavior observed when the bug occurs and explain the behavior expected when the bug is not present.
|
|
14
|
+
|
|
15
|
+
### Reproducibility
|
|
16
|
+
|
|
17
|
+
- [ ] The bug is reproducible.
|
|
18
|
+
- [ ] The bug is intermittent.
|
|
19
|
+
- [ ] The bug occurs only under specific conditions.
|
|
20
|
+
|
|
21
|
+
#### Steps to Reproduce
|
|
22
|
+
|
|
23
|
+
1. List the steps to reproduce the bug.
|
|
24
|
+
2. Be as detailed as possible to help with replication.
|
|
25
|
+
|
|
26
|
+
#### Screenshots / Error Messages (if applicable)
|
|
27
|
+
|
|
28
|
+
Insert any relevant screenshots or error messages related to the bug.
|
|
29
|
+
|
|
30
|
+
#### Environment
|
|
31
|
+
|
|
32
|
+
- **Operating System**: [e.g., Windows 10, macOS, Linux]
|
|
33
|
+
- **Browser (if applicable)**: [e.g., Google Chrome, Firefox, Safari]
|
|
34
|
+
- **Application Version/Commit**: [e.g., v1.2.3, Git commit hash]
|
|
35
|
+
- **Additional Environment Details**: [e.g., hardware specifications, network conditions]
|
|
36
|
+
|
|
37
|
+
### Additional Context
|
|
38
|
+
|
|
39
|
+
Provide any additional context or information about the bug.
|
|
40
|
+
|
|
41
|
+
### Possible Fix
|
|
42
|
+
|
|
43
|
+
If you have suggestions for a fix, please describe them here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Peer Review
|
|
3
|
+
about: Use to submit a peer review
|
|
4
|
+
title: ''
|
|
5
|
+
labels: review
|
|
6
|
+
assignees: ''
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Peer Review for Reproducibility Checks
|
|
10
|
+
|
|
11
|
+
### Review Checklist
|
|
12
|
+
|
|
13
|
+
Please review the following aspects related to reproducibility checks:
|
|
14
|
+
|
|
15
|
+
- [ ] **Environment Setup**:
|
|
16
|
+
- [ ] Were detailed instructions provided for setting up the development environment?
|
|
17
|
+
- [ ] Are all necessary dependencies and libraries clearly documented?
|
|
18
|
+
- [ ] **Data Preparation**:
|
|
19
|
+
- [ ] Are source data files and preprocessing steps clearly documented?
|
|
20
|
+
- [ ] Are scripts or commands for data transformation included and well-documented?
|
|
21
|
+
- [ ] **Code Execution**:
|
|
22
|
+
- [ ] Were clear instructions provided for running the code?
|
|
23
|
+
- [ ] Does the code execute without errors and produce expected outputs?
|
|
24
|
+
- [ ] **Configuration Management**:
|
|
25
|
+
- [ ] Is version control information (e.g., Git commit hash) included for reproducibility?
|
|
26
|
+
- [ ] Are any configuration files or parameters used properly documented?
|
|
27
|
+
- [ ] **Results Verification**:
|
|
28
|
+
- [ ] Are output results (e.g., metrics, visualizations) included and matched with expected outcomes?
|
|
29
|
+
- [ ] Have any discrepancies between expected and actual results been identified and explained?
|
|
30
|
+
- [ ] **Documentation**:
|
|
31
|
+
- [ ] Is there a detailed README or documentation explaining the experiment setup and execution process?
|
|
32
|
+
- [ ] Are code comments and documentation clear and informative?
|
|
33
|
+
- [ ] **External Dependencies**:
|
|
34
|
+
- [ ] Are any external data sources or APIs used accessible and well-documented?
|
|
35
|
+
- [ ] Are external libraries or packages properly cited and versioned for reproducibility?
|
|
36
|
+
- [ ] **Validation**:
|
|
37
|
+
- [ ] Can an independent reviewer replicate the experiment using the provided instructions?
|
|
38
|
+
- [ ] Are the results consistent across different environments or platforms?
|
|
39
|
+
|
|
40
|
+
### Additional Comments
|
|
41
|
+
|
|
42
|
+
Include any additional comments, concerns, or suggestions related to reproducibility.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Publish to GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- name: Set up Python
|
|
14
|
+
uses: actions/setup-python@v5
|
|
15
|
+
with:
|
|
16
|
+
python-version: "3.10"
|
|
17
|
+
cache: "pip"
|
|
18
|
+
- name: Dependencies
|
|
19
|
+
run: |
|
|
20
|
+
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
|
|
21
|
+
if [ -f pyproject.toml ]; then pip install ".[docs]"; fi
|
|
22
|
+
- name: Build Jupyter Book
|
|
23
|
+
run: |
|
|
24
|
+
jupyter-book build . --config docs/_config.yml --toc docs/_toc.yml
|
|
25
|
+
- name: Deploy
|
|
26
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
27
|
+
if: github.ref == 'refs/heads/main' && job.status == 'success'
|
|
28
|
+
with:
|
|
29
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
30
|
+
publish_dir: ./_build/html
|
|
31
|
+
enable_jekyll: false
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Publish Python 🐍 distribution 📦 to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
name: Build distribution 📦
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- name: Set up Python
|
|
15
|
+
uses: actions/setup-python@v4
|
|
16
|
+
with:
|
|
17
|
+
python-version: "3.x"
|
|
18
|
+
- name: Install pypa/build
|
|
19
|
+
run: >-
|
|
20
|
+
python3 -m
|
|
21
|
+
pip install
|
|
22
|
+
build
|
|
23
|
+
--user
|
|
24
|
+
- name: Build a binary wheel and a source tarball
|
|
25
|
+
run: python3 -m build
|
|
26
|
+
- name: Store the distribution packages
|
|
27
|
+
uses: actions/upload-artifact@v3
|
|
28
|
+
with:
|
|
29
|
+
name: python-package-distributions
|
|
30
|
+
path: dist/
|
|
31
|
+
|
|
32
|
+
publish-to-pypi:
|
|
33
|
+
name: >-
|
|
34
|
+
Publish Python 🐍 distribution 📦 to PyPI
|
|
35
|
+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
|
|
36
|
+
needs:
|
|
37
|
+
- build
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
environment:
|
|
40
|
+
name: pypi
|
|
41
|
+
url: https://pypi.org/p/GOSTRocks
|
|
42
|
+
permissions:
|
|
43
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
44
|
+
|
|
45
|
+
steps:
|
|
46
|
+
- name: Download all the dists
|
|
47
|
+
uses: actions/download-artifact@v3
|
|
48
|
+
with:
|
|
49
|
+
name: python-package-distributions
|
|
50
|
+
path: dist/
|
|
51
|
+
- name: Publish distribution 📦 to PyPI
|
|
52
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
|
|
5
|
+
# C extensions
|
|
6
|
+
*.so
|
|
7
|
+
|
|
8
|
+
# Distribution / packaging
|
|
9
|
+
.Python
|
|
10
|
+
env/
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
*.egg-info/
|
|
23
|
+
.installed.cfg
|
|
24
|
+
*.egg
|
|
25
|
+
|
|
26
|
+
# PyInstaller
|
|
27
|
+
# Usually these files are written by a python script from a template
|
|
28
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
29
|
+
*.manifest
|
|
30
|
+
*.spec
|
|
31
|
+
|
|
32
|
+
# Installer logs
|
|
33
|
+
pip-log.txt
|
|
34
|
+
pip-delete-this-directory.txt
|
|
35
|
+
|
|
36
|
+
# Unit test / coverage reports
|
|
37
|
+
htmlcov/
|
|
38
|
+
.tox/
|
|
39
|
+
.coverage
|
|
40
|
+
.coverage.*
|
|
41
|
+
.cache
|
|
42
|
+
nosetests.xml
|
|
43
|
+
coverage.xml
|
|
44
|
+
*.cover
|
|
45
|
+
|
|
46
|
+
# Translations
|
|
47
|
+
*.mo
|
|
48
|
+
*.pot
|
|
49
|
+
|
|
50
|
+
# Django stuff:
|
|
51
|
+
*.log
|
|
52
|
+
|
|
53
|
+
# Sphinx documentation
|
|
54
|
+
docs/_build/
|
|
55
|
+
|
|
56
|
+
# PyBuilder
|
|
57
|
+
target/
|
|
58
|
+
|
|
59
|
+
# DotEnv configuration
|
|
60
|
+
.env
|
|
61
|
+
|
|
62
|
+
# Database
|
|
63
|
+
*.db
|
|
64
|
+
*.rdb
|
|
65
|
+
|
|
66
|
+
# Pycharm
|
|
67
|
+
.idea
|
|
68
|
+
|
|
69
|
+
# VS Code
|
|
70
|
+
.vscode/
|
|
71
|
+
|
|
72
|
+
# Spyder
|
|
73
|
+
.spyproject/
|
|
74
|
+
|
|
75
|
+
# Jupyter NB Checkpoints
|
|
76
|
+
.ipynb_checkpoints/
|
|
77
|
+
|
|
78
|
+
# Mac OS-specific storage files
|
|
79
|
+
.DS_Store
|
|
80
|
+
|
|
81
|
+
# vim
|
|
82
|
+
*.swp
|
|
83
|
+
*.swo
|
|
84
|
+
|
|
85
|
+
# Mypy cache
|
|
86
|
+
.mypy_cache/
|
|
87
|
+
|
|
88
|
+
# Jupyter Book
|
|
89
|
+
_build/
|
|
90
|
+
|
|
91
|
+
# python-dotenv
|
|
92
|
+
.env
|
|
93
|
+
|
|
94
|
+
# setuptools-scm/
|
|
95
|
+
src/*/_version.py
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v4.5.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- id: end-of-file-fixer
|
|
9
|
+
- id: check-yaml
|
|
10
|
+
- id: check-added-large-files
|
|
11
|
+
- id: check-ast
|
|
12
|
+
- id: check-json
|
|
13
|
+
- id: detect-aws-credentials
|
|
14
|
+
args: [--allow-missing-credentials]
|
|
15
|
+
- id: detect-private-key
|
|
16
|
+
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
17
|
+
rev: v0.39.0
|
|
18
|
+
hooks:
|
|
19
|
+
- id: markdownlint
|
|
20
|
+
name: Markdownlint
|
|
21
|
+
files: \.(md|mdown|markdown)$
|
|
22
|
+
args: [
|
|
23
|
+
"--disable=MD013", # line-length
|
|
24
|
+
"--disable=MD033", # no-inline-html
|
|
25
|
+
]
|
|
26
|
+
- repo: https://github.com/codespell-project/codespell
|
|
27
|
+
rev: v2.2.6
|
|
28
|
+
hooks:
|
|
29
|
+
- id: codespell
|
|
30
|
+
name: codespell
|
|
31
|
+
description: Checks for common misspellings in text files
|
|
32
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
33
|
+
rev: v0.2.1
|
|
34
|
+
hooks:
|
|
35
|
+
- id: ruff
|
|
36
|
+
types_or: [python, pyi, jupyter]
|
|
37
|
+
args: [--fix]
|
|
38
|
+
- id: ruff-format
|
|
39
|
+
types_or: [python, pyi, jupyter]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
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: "Geospatial tools from the World Bank GOST team"
|
|
4
|
+
authors:
|
|
5
|
+
- affiliation: World Bank
|
|
6
|
+
family-names: Chamorro
|
|
7
|
+
given-names: Andres
|
|
8
|
+
keywords:
|
|
9
|
+
- Urban Analytics
|
|
10
|
+
repository-code: https://github.com/worldbank/GOSTrocks
|