Data and code for block-level urban deprivation screening using census and satellite data in Valledupar, Colombia

Published: 2 November 2026| Version 2 | DOI: 10.17632/4nmvy9m7gk.2
Contributors:
,
,

Description

This dataset contains the reproducible code, validated analytical outputs, tables, and figures supporting the study “Integrating census and satellite data for block-level urban deprivation screening in a Colombian intermediate city: Evidence from Valledupar”. The study integrates official Colombian census information with Earth observation variables to develop a block-level urban deprivation screening and spatial-prioritization framework for Valledupar, Colombia. Census information was obtained from the 2018 National Population and Housing Census (CNPV) and the corresponding geographic framework provided by DANE. Environmental variables include Landsat-derived NDVI, NDBI, land surface temperature, a built-surface proxy, and elevation from Copernicus DEM. The analytical universe contains 4,276 urban blocks, of which 3,827 were classified as residential and included in the deprivation screening analysis. A total of 449 non-residential blocks were retained spatially but excluded from the deprivation score. The upper 20% of the residential deprivation distribution comprises 766 priority blocks. The census-based deprivation score showed strong convergence with the Multidimensional Poverty Index (Spearman rho = 0.7627). Environmental associations were evaluated using Spearman correlations and group comparisons. A logistic benchmark was additionally fitted to identify residential blocks in the upper quintile of IPM values (q80 = 41.554445556), using 15 census and environmental predictors. Five-fold cross-validation yielded ROC AUC = 0.9332 and Brier score = 0.0704. The repository includes Python scripts for data acquisition, preprocessing, remote-sensing extraction, zonal statistics, lacunarity analysis, statistical modelling, figure generation, and final table production. A STEPS_TO_REPRODUCE file provides detailed execution instructions, while verify_results.py checks the principal published numerical results. Raw DANE, Landsat, and Copernicus source datasets are not redistributed in this archive; instead, the repository provides the code and official source information required to obtain them. The deprivation score is intended for screening and spatial prioritization. It should not be interpreted as a definitive classification of informal settlements or slums in the absence of independent local ground-truth data.

Files

Steps to reproduce

## 1. Environment Create a clean Python environment and install the packages in `requirements.txt`. The validated local environment used Python 3.15.2; the minimum package constraints in `requirements.txt` are intentionally broader for portability. ## 2. External data The pipeline accesses or expects the following third-party sources: 1. DANE CNPV 2018 / MGN 2018 block geography and census attributes for municipality 20001. 2. DANE block-level multidimensional poverty information. 3. Landsat Collection 2 Level-2 imagery (main scene: `LC09_L2SP_008053_20240121_02_T1`). 4. Landsat 8 sensitivity scene: `LC08_L2SP_008053_20180128_02_T1`. 5. Copernicus DEM GLO-30. ## 3. Principal workflow Run from the repository root: ```bash python3 run_all.py ``` The runner executes the canonical modules in sequence. `06_heat_index.py` is intentionally not part of the article's main analysis because satellite LST is not substituted for air temperature/humidity. ## 4. Canonical module sequence - `00_download_dane.py` - census/geography acquisition. - `01_prepare_census.py` - residential universe, deprivation indicators and score. - `02_download_remote.py` - 2024 Landsat and Copernicus acquisition. - `03_zonal_remote.py` - frozen all_touched=True block summaries. - `04_lacunarity.py` - descriptive multiscale morphology. - `05_model.py` - screening summaries and high-IPM benchmark. - `07_figures.py` - final publication figures (five main figures plus Figure S1). - `08_results_tables.py` - main tables. - `09_spatial_robustness.py` - Moran diagnostics / spatial robustness support. - `10b_spatial_cv_balanced.py` - canonical balanced spatial CV. - `11_landsat_2018_sensitivity.py` - census-year Landsat scene. - `11b_zonal_temporal_sensitivity.py` - 2018 zonal extraction with frozen rules. - `11c_temporal_comparison.py` - 2018/2024 sensitivity comparison. - `12a_priority_threshold_sensitivity.py` - q75/q80/q90 sensitivity. - `12b_leave_one_indicator_out.py` - score-component sensitivity. - `12c_zonal_all_touched_sensitivity.py` - pixel-inclusion sensitivity. - `13_supplementary_tables.py` - supplementary table assembly. ## 5. Verify frozen results Run: ```bash python3 verify_results.py ``` The verification script checks analytical-universe counts, the frozen random-CV benchmark, canonical balanced spatial-CV values, Moran diagnostics, temporal sensitivity, threshold counts, leave-one-indicator-out stability and the zonal-extraction reproduction checkpoints. ## 6. Interpretation guardrails - Screening priority is not an informal-settlement classification. - IPM is not independent ground truth for urban informality. - Landsat LST is land-surface temperature, not indoor/air temperature. - The 2018/2024 two-scene comparison is sensitivity analysis, not longitudinal change. - q80 is an operational planning threshold, not a natural class boundary. - The simple built fraction is descriptive and sensitive to raster extraction choices.

Categories

Remote Sensing, Spatial Classification, Landsat Satellite, Census, Social Deprivation

Licence