Repository navigation
WP1.1: Add built-up share (WSF2019) as city characteristic - #10
Merged
Merged
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
💤 This PR is closed. The preview is no longer maintained. Last preview URL: |
FlorianNachtigall
self-requested a review
October 9, 2026 09:21
FlorianNachtigall
approved these changes
Oct 9, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9
Summary
Adds built-up share: the share of each urban centre's area covered by settlements in the World Settlement Footprint 2019. It is shown in the explorer like the other city characteristics (value, percentile chip, colour-by, filter).
Data source
Citation: Marconcini et al. (2021), GI_Forum 1, 33–38, doi:10.1553/giscience2021_01_s33
idincities.json.Method (
preprocessing/wsf-2019/)01_download_ucdb.py): GHS-UCDB R2024A V1-0 from the JRC FTP; onlyID_UC_G0+ geometry are kept.02_compute_wsf_stats.py):output/wsf_2019_stats.csv, with built share, built:non-built ratio, built and observed km², and pixel counts.03_plot_and_describe.R):output/wsf_2019_descriptive_stats.csv: global, by region and by type, including area-weighted values.preprocess.ipynb): addsbuilt_up_shareandbuilt_up_ratiotocharacteristics/percentilesinpublic/cities.json. It runs standalone on the existingcities.json, until the rest of the notebook is refactored, and changes no other values.All raw data is stored temporarily in
preprocessing/wsf-2019/data_raw/(gitignored) and deleted at the end ofrun.sh. Only the CSVs and plots inoutput/are kept.Reproduce
See
preprocessing/wsf-2019/README.md. In short:Then run the last cell of
preprocess.ipynbfrom the repo root.Frontend
src/utils/metrics.js: new metric "Built-up share [%]"src/components/InfoPanel.jsx: WSF2019 attribution (required by CC-BY-4.0)