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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
This file documents the main data sources, software tools, administrative boundary sources, and suggested citations for the **Black Marble Leiva Project**.
|
| 7 |
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
license: cc-by-4.0
|
| 8 |
+
pretty_name: Black Marble Leiva Project
|
| 9 |
+
viewer: false
|
| 10 |
+
tags:
|
| 11 |
+
|
| 12 |
+
* remote-sensing
|
| 13 |
+
* nighttime-lights
|
| 14 |
+
* viirs
|
| 15 |
+
* black-marble
|
| 16 |
+
* nasa
|
| 17 |
+
* daily-data
|
| 18 |
+
* administrative-boundaries
|
| 19 |
+
* peru
|
| 20 |
+
* bolivia
|
| 21 |
+
* indonesia
|
| 22 |
+
* geospatial
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# Black Marble Leiva Project
|
| 27 |
+
|
| 28 |
+
The **Black Marble Leiva Project** is an open dataset repository for daily nighttime lights panels built from **NASA Black Marble VIIRS VNP46A2** products and aggregated to subnational administrative units.
|
| 29 |
+
|
| 30 |
+
This repository is the public data layer of the project. It stores figures, metadata, final Parquet outputs, app-ready files, and documentation for country-level daily nighttime lights panels.
|
| 31 |
+
|
| 32 |
+
The project currently focuses on:
|
| 33 |
+
|
| 34 |
+
| Country | Administrative unit | Number of units | Boundary source | Status |
|
| 35 |
+
| --------- | --------------------: | --------------: | ----------------------------- | ----------- |
|
| 36 |
+
| Peru | Districts | 1,793 | INEI 1993 district boundaries | In progress |
|
| 37 |
+
| Bolivia | Municipalities | 339 | QuaRCS project | In progress |
|
| 38 |
+
| Indonesia | Districts / regencies | 514 | QuaRCS project | In progress |
|
| 39 |
+
|
| 40 |
+
The long-term goal is to provide research-ready daily nighttime lights datasets for spatial analysis, local economic monitoring, environmental research, disaster and shock analysis, and interactive visualization of subnational development patterns.
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
## Project objective
|
| 45 |
+
|
| 46 |
+
This project converts daily NASA Black Marble VIIRS nighttime lights data into administrative-level daily panels.
|
| 47 |
+
|
| 48 |
+
The repository has four main objectives:
|
| 49 |
+
|
| 50 |
+
1. **Publish daily administrative nighttime lights panels** for Peru, Bolivia, Indonesia, and future countries.
|
| 51 |
+
2. **Provide lightweight files for interactive applications**, especially district-level or municipality-level time series.
|
| 52 |
+
3. **Document data sources, boundary sources, code dependencies, and limitations** in a transparent way.
|
| 53 |
+
4. **Create a citable public data product** for research and teaching.
|
| 54 |
+
|
| 55 |
+
This repository does not store raw NASA rasters. It stores processed administrative-level outputs derived from NASA Black Marble data.
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## Main remote sensing source
|
| 60 |
+
|
| 61 |
+
The primary remote sensing product is:
|
| 62 |
+
|
| 63 |
+
```text
|
| 64 |
+
NASA Black Marble VNP46A2
|
| 65 |
+
VIIRS/NPP Gap-Filled Lunar BRDF-Adjusted Nighttime Lights Daily L3 Global 500m product
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
The main variable used in the project is:
|
| 69 |
+
|
| 70 |
+
```text
|
| 71 |
+
Gap_Filled_DNB_BRDF-Corrected_NTL
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
This variable is aggregated from raster pixels to administrative polygons using zonal statistics.
|
| 75 |
+
|
| 76 |
+
Typical output variables include:
|
| 77 |
+
|
| 78 |
+
| Variable | Description |
|
| 79 |
+
| ---------------- | ---------------------------------------------------------- |
|
| 80 |
+
| `mean` | Mean nighttime lights value within the administrative unit |
|
| 81 |
+
| `median` | Median nighttime lights value |
|
| 82 |
+
| `sum` | Sum of nighttime lights values |
|
| 83 |
+
| `std` | Standard deviation |
|
| 84 |
+
| `min` | Minimum value |
|
| 85 |
+
| `max` | Maximum value |
|
| 86 |
+
| `count` | Number of pixels considered |
|
| 87 |
+
| `count_valid` | Number of valid pixels |
|
| 88 |
+
| `count_positive` | Number of positive-light pixels |
|
| 89 |
+
|
| 90 |
+
Additional columns may be included depending on the country, version, and processing stage.
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## Administrative boundary sources
|
| 95 |
+
|
| 96 |
+
Administrative boundaries are used to aggregate NASA Black Marble raster pixels to subnational units.
|
| 97 |
+
|
| 98 |
+
The boundary source differs by country:
|
| 99 |
+
|
| 100 |
+
| Country | Boundary source | Redistribution policy |
|
| 101 |
+
| --------- | ------------------------------------------------------------------------------------------------------------- | -------------------------------- |
|
| 102 |
+
| Peru | District map associated with the 1993 Peruvian census, facilitated by INEI to the maintainer for research use | May be included when appropriate |
|
| 103 |
+
| Bolivia | QuaRCS project | Not redistributed by default |
|
| 104 |
+
| Indonesia | QuaRCS project | Not redistributed by default |
|
| 105 |
+
|
| 106 |
+
For Peru, this repository may include simplified district boundaries for web visualization.
|
| 107 |
+
|
| 108 |
+
For Bolivia and Indonesia, the original administrative boundary geometries come from the QuaRCS project and are not redistributed here by default. This repository documents the boundary source and preserves compatible administrative identifiers, names, and metadata needed to interpret the processed nighttime lights outputs.
|
| 109 |
+
|
| 110 |
+
Users who need the original Bolivia or Indonesia geometries should consult the corresponding QuaRCS source.
|
| 111 |
+
|
| 112 |
+
---
|
| 113 |
+
|
| 114 |
+
## Repository structure
|
| 115 |
+
|
| 116 |
+
The repository is organized by country.
|
| 117 |
+
|
| 118 |
+
```text
|
| 119 |
+
BlackMarbleLeivaProject/
|
| 120 |
+
│
|
| 121 |
+
├── README.md
|
| 122 |
+
├── REFERENCES.md
|
| 123 |
+
├── catalog.yml
|
| 124 |
+
│
|
| 125 |
+
├── Bolivia339/
|
| 126 |
+
│ ├── figures/
|
| 127 |
+
│ ├── metadata/
|
| 128 |
+
│ ├── daily_monthly_parquets/
|
| 129 |
+
│ └── daily_app_by_unit/
|
| 130 |
+
│
|
| 131 |
+
├── Indonesia514/
|
| 132 |
+
│ ├── figures/
|
| 133 |
+
│ ├── metadata/
|
| 134 |
+
│ ├── daily_monthly_parquets/
|
| 135 |
+
│ └── daily_app_by_unit/
|
| 136 |
+
│
|
| 137 |
+
└── Peru1793/
|
| 138 |
+
├── figures/
|
| 139 |
+
├── metadata/
|
| 140 |
+
├── boundaries/
|
| 141 |
+
├── daily_monthly_parquets/
|
| 142 |
+
└── daily_app_by_unit/
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
The repository is being populated progressively. Some folders may appear before the corresponding data products are fully uploaded.
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## File types
|
| 150 |
+
|
| 151 |
+
### 1. Figures
|
| 152 |
+
|
| 153 |
+
Each country includes precomputed figures that can be loaded directly by notebooks or web applications.
|
| 154 |
+
|
| 155 |
+
Example:
|
| 156 |
+
|
| 157 |
+
```text
|
| 158 |
+
Bolivia339/figures/BoliviaBMln1000plus1.png
|
| 159 |
+
Indonesia514/figures/IndonesiaBMln1000plus1.png
|
| 160 |
+
Peru1793/figures/PeruBMln1000plus1.png
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
These figures summarize the daily nighttime lights panel and are intended for quick inspection, documentation, and the planned Streamlit app.
|
| 164 |
+
|
| 165 |
+
---
|
| 166 |
+
|
| 167 |
+
### 2. Monthly Parquet files
|
| 168 |
+
|
| 169 |
+
Monthly Parquet files are the production-level outputs.
|
| 170 |
+
|
| 171 |
+
Expected structure:
|
| 172 |
+
|
| 173 |
+
```text
|
| 174 |
+
Bolivia339/daily_monthly_parquets/
|
| 175 |
+
├── 2012-01.parquet
|
| 176 |
+
├── 2012-02.parquet
|
| 177 |
+
├── 2012-03.parquet
|
| 178 |
+
└── ...
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
Each monthly file contains all administrative units for all valid days in that month.
|
| 182 |
+
|
| 183 |
+
These files are useful for:
|
| 184 |
+
|
| 185 |
+
* monthly checkpointing,
|
| 186 |
+
* quality control,
|
| 187 |
+
* map visualization by date,
|
| 188 |
+
* country-level processing,
|
| 189 |
+
* reproducibility of the production workflow.
|
| 190 |
+
|
| 191 |
+
---
|
| 192 |
+
|
| 193 |
+
### 3. App-ready files by administrative unit
|
| 194 |
+
|
| 195 |
+
For interactive applications, the repository may include lightweight files by administrative unit.
|
| 196 |
+
|
| 197 |
+
Expected structure:
|
| 198 |
+
|
| 199 |
+
```text
|
| 200 |
+
Bolivia339/daily_app_by_unit/
|
| 201 |
+
├── unit_id=10101.parquet
|
| 202 |
+
├── unit_id=10102.parquet
|
| 203 |
+
├── unit_id=10103.parquet
|
| 204 |
+
└── ...
|
| 205 |
+
```
|
| 206 |
+
|
| 207 |
+
Each file contains the full daily time series for one administrative unit.
|
| 208 |
+
|
| 209 |
+
This structure allows a web application to load one district, municipality, or regency without loading the full country-level dataset.
|
| 210 |
+
|
| 211 |
+
These files are useful for:
|
| 212 |
+
|
| 213 |
+
* Streamlit applications,
|
| 214 |
+
* fast district-level queries,
|
| 215 |
+
* time-series visualization,
|
| 216 |
+
* individual unit downloads,
|
| 217 |
+
* comparison with country averages.
|
| 218 |
+
|
| 219 |
+
---
|
| 220 |
+
|
| 221 |
+
### 4. Metadata files
|
| 222 |
+
|
| 223 |
+
Each country should include metadata files such as:
|
| 224 |
+
|
| 225 |
+
```text
|
| 226 |
+
metadata/
|
| 227 |
+
├── units.parquet
|
| 228 |
+
├── country_mean.parquet
|
| 229 |
+
├── country_summary.json
|
| 230 |
+
├── boundary_source.md
|
| 231 |
+
├── code_source.md
|
| 232 |
+
└── variable_dictionary.csv
|
| 233 |
+
```
|
| 234 |
+
|
| 235 |
+
Expected metadata fields may include:
|
| 236 |
+
|
| 237 |
+
| Field | Description |
|
| 238 |
+
| ------------------ | ---------------------------------------------------- |
|
| 239 |
+
| `country` | Country name |
|
| 240 |
+
| `unit_id` | Administrative unit identifier |
|
| 241 |
+
| `unit_name` | Administrative unit name |
|
| 242 |
+
| `admin1_name` | First-level administrative unit |
|
| 243 |
+
| `admin2_name` | Second-level administrative unit, when available |
|
| 244 |
+
| `lat` | Approximate centroid latitude |
|
| 245 |
+
| `lon` | Approximate centroid longitude |
|
| 246 |
+
| `area_km2` | Approximate area in square kilometers |
|
| 247 |
+
| `boundary_source` | Source of the administrative boundary file |
|
| 248 |
+
| `boundary_version` | Version or date of the boundary file, when available |
|
| 249 |
+
|
| 250 |
+
---
|
| 251 |
+
|
| 252 |
+
## Code access and reproducibility
|
| 253 |
+
|
| 254 |
+
The public data outputs are stored in this Hugging Face repository.
|
| 255 |
+
|
| 256 |
+
The full construction workflow may depend on:
|
| 257 |
+
|
| 258 |
+
* private Hugging Face repositories,
|
| 259 |
+
* authenticated NASA Earthdata access,
|
| 260 |
+
* Google Colab notebooks,
|
| 261 |
+
* external QuaRCS boundary repositories,
|
| 262 |
+
* temporary processing files not stored in this repository.
|
| 263 |
+
|
| 264 |
+
For the Peru workflow, some notebooks may read source files from private repositories controlled by the maintainer.
|
| 265 |
+
|
| 266 |
+
For Bolivia and Indonesia, the workflows may read administrative boundaries from QuaRCS project repositories.
|
| 267 |
+
|
| 268 |
+
This means that the public outputs are documented and citable, but not every construction notebook is guaranteed to be fully executable by every user without access to the corresponding private or external source repositories.
|
| 269 |
+
|
| 270 |
+
---
|
| 271 |
+
|
| 272 |
+
## Colab notebooks
|
| 273 |
+
|
| 274 |
+
The project includes two types of notebooks:
|
| 275 |
+
|
| 276 |
+
1. **Visualization notebooks**
|
| 277 |
+
These notebooks load outputs and generate maps, figures, and diagnostics.
|
| 278 |
+
|
| 279 |
+
2. **Compilation notebooks**
|
| 280 |
+
These notebooks document the construction process used to generate the daily administrative panels.
|
| 281 |
+
|
| 282 |
+
Some notebooks may depend on private or authenticated data sources.
|
| 283 |
+
|
| 284 |
+
### Visualization notebooks
|
| 285 |
+
|
| 286 |
+
| Country | Notebook |
|
| 287 |
+
| --------- | ------------------------------------------------------------------------------------- |
|
| 288 |
+
| Peru | https://colab.research.google.com/drive/1r-mUvxgqvey5zwrOZoeE8X2dRiRCZssT?usp=sharing |
|
| 289 |
+
| Bolivia | https://colab.research.google.com/drive/1RU_lmnR3IAXF3WZv6ZlkuvaiqdWLtftg?usp=sharing |
|
| 290 |
+
| Indonesia | https://colab.research.google.com/drive/1y_fHSBKanW11fl66UyB9DIg-uRJ0xBgz?usp=sharing |
|
| 291 |
+
|
| 292 |
+
### Compilation notebooks
|
| 293 |
+
|
| 294 |
+
| Country | Notebook |
|
| 295 |
+
| --------- | ------------------------------------------------------------------------------------- |
|
| 296 |
+
| Peru | https://colab.research.google.com/drive/1wpKVihAOicNo8Ie993_PMscq9bWPWi_u?usp=sharing |
|
| 297 |
+
| Bolivia | https://colab.research.google.com/drive/1oMcHZpL4_Arx-osgxwGUyA2q-HMI8JDa?usp=sharing |
|
| 298 |
+
| Indonesia | https://colab.research.google.com/drive/19e15HJZFRPXggH_3wb76cPSlCKUKMofV?usp=sharing |
|
| 299 |
+
|
| 300 |
+
---
|
| 301 |
+
|
| 302 |
+
## Planned Streamlit application
|
| 303 |
+
|
| 304 |
+
A companion Streamlit application is planned for interactive exploration of the datasets.
|
| 305 |
+
|
| 306 |
+
The app is designed to allow users to:
|
| 307 |
+
|
| 308 |
+
* select a country,
|
| 309 |
+
* view the main country-level figure,
|
| 310 |
+
* select an administrative unit,
|
| 311 |
+
* visualize the daily nighttime lights series,
|
| 312 |
+
* compare the selected unit against the national mean,
|
| 313 |
+
* download the selected unit-level dataset,
|
| 314 |
+
* access full Parquet files from Hugging Face,
|
| 315 |
+
* read methodology and limitations.
|
| 316 |
+
|
| 317 |
+
The Streamlit app will not process raw rasters. It will only read final Parquet outputs, metadata, and precomputed figures.
|
| 318 |
+
|
| 319 |
+
---
|
| 320 |
+
|
| 321 |
+
## Recommended usage
|
| 322 |
+
|
| 323 |
+
### Load one administrative unit
|
| 324 |
+
|
| 325 |
+
```python
|
| 326 |
+
import pandas as pd
|
| 327 |
+
|
| 328 |
+
path = "hf://datasets/faviolc/BlackMarbleLeivaProject/Bolivia339/daily_app_by_unit/unit_id=10101.parquet"
|
| 329 |
+
|
| 330 |
+
df = pd.read_parquet(path)
|
| 331 |
+
|
| 332 |
+
print(df.head())
|
| 333 |
+
```
|
| 334 |
+
|
| 335 |
+
### Load one monthly file
|
| 336 |
+
|
| 337 |
+
```python
|
| 338 |
+
import pandas as pd
|
| 339 |
+
|
| 340 |
+
path = "hf://datasets/faviolc/BlackMarbleLeivaProject/Bolivia339/daily_monthly_parquets/2012-01.parquet"
|
| 341 |
+
|
| 342 |
+
df = pd.read_parquet(path)
|
| 343 |
+
|
| 344 |
+
print(df.head())
|
| 345 |
+
```
|
| 346 |
+
|
| 347 |
+
### Load metadata
|
| 348 |
+
|
| 349 |
+
```python
|
| 350 |
+
import pandas as pd
|
| 351 |
+
|
| 352 |
+
path = "hf://datasets/faviolc/BlackMarbleLeivaProject/Bolivia339/metadata/units.parquet"
|
| 353 |
+
|
| 354 |
+
units = pd.read_parquet(path)
|
| 355 |
+
|
| 356 |
+
print(units.head())
|
| 357 |
+
```
|
| 358 |
+
|
| 359 |
+
---
|
| 360 |
+
|
| 361 |
+
## Methodological summary
|
| 362 |
+
|
| 363 |
+
The workflow follows these general steps:
|
| 364 |
+
|
| 365 |
+
1. Define the country and administrative boundaries.
|
| 366 |
+
2. Load the daily NASA Black Marble VNP46A2 product.
|
| 367 |
+
3. Select the nighttime lights variable.
|
| 368 |
+
4. Process rasters over the country extent.
|
| 369 |
+
5. Aggregate raster pixels to administrative polygons.
|
| 370 |
+
6. Save monthly checkpoint Parquet files.
|
| 371 |
+
7. Validate coverage, missingness, and outliers.
|
| 372 |
+
8. Export app-ready files by administrative unit.
|
| 373 |
+
9. Generate figures, diagnostics, and metadata.
|
| 374 |
+
10. Publish final outputs to Hugging Face.
|
| 375 |
+
|
| 376 |
+
---
|
| 377 |
+
|
| 378 |
+
## Known limitations
|
| 379 |
+
|
| 380 |
+
Users should interpret the data with care. Nighttime lights products may be affected by:
|
| 381 |
+
|
| 382 |
+
* cloud contamination,
|
| 383 |
+
* snow or surface reflectance issues,
|
| 384 |
+
* lunar illumination correction limits,
|
| 385 |
+
* auroras and atmospheric effects,
|
| 386 |
+
* sensor noise,
|
| 387 |
+
* fires, gas flaring, fishing fleets, or temporary light sources,
|
| 388 |
+
* administrative boundary inconsistencies,
|
| 389 |
+
* missing or low-quality observations,
|
| 390 |
+
* extreme outliers or artifacts in specific dates.
|
| 391 |
+
|
| 392 |
+
The datasets are research-ready outputs, but they should not be interpreted as direct measurements of income, population, electricity consumption, or economic activity without additional validation.
|
| 393 |
+
|
| 394 |
+
---
|
| 395 |
+
|
| 396 |
+
## Citation
|
| 397 |
+
|
| 398 |
+
If you use this dataset, please cite:
|
| 399 |
+
|
| 400 |
+
1. this Hugging Face dataset repository,
|
| 401 |
+
2. NASA Black Marble VNP46A2,
|
| 402 |
+
3. the Black Marble product-suite reference,
|
| 403 |
+
4. BlackMarblePy, if you use or reproduce the workflow,
|
| 404 |
+
5. the corresponding administrative boundary source for the country used.
|
| 405 |
+
|
| 406 |
+
Suggested citation for this repository:
|
| 407 |
+
|
| 408 |
+
```text
|
| 409 |
+
Leiva Cárdenas, Favio Sergio. Black Marble Leiva Project: Daily VIIRS Nighttime Lights Administrative Panels for Peru, Bolivia, and Indonesia. Hugging Face Dataset Repository.
|
| 410 |
+
```
|
| 411 |
+
|
| 412 |
+
Please see `REFERENCES.md` for full suggested citations.
|
| 413 |
+
|
| 414 |
+
---
|
| 415 |
+
|
| 416 |
+
## License
|
| 417 |
+
|
| 418 |
+
This dataset repository is released under the **Creative Commons Attribution 4.0 International License**.
|
| 419 |
+
|
| 420 |
+
You are free to share and adapt the processed data, provided that appropriate credit is given.
|
| 421 |
+
|
| 422 |
+
Administrative boundary source files may be subject to their own source terms and are documented separately.
|
| 423 |
+
|
| 424 |
+
---
|
| 425 |
+
|
| 426 |
+
## Disclaimer
|
| 427 |
+
|
| 428 |
+
This repository is an independent research project. It is not an official NASA, World Bank, INEI, QuaRCS, or government product.
|
| 429 |
+
|
| 430 |
+
NASA Black Marble data are the original remote sensing source. This repository provides processed administrative-level outputs derived from those data.
|
| 431 |
+
|
| 432 |
+
Administrative boundary sources are documented for transparency. Redistribution of boundary geometries depends on the corresponding source terms.
|
| 433 |
+
|
| 434 |
+
---
|
| 435 |
+
|
| 436 |
+
## Contact
|
| 437 |
+
|
| 438 |
+
Maintainer:
|
| 439 |
+
|
| 440 |
+
**Favio Sergio Leiva Cárdenas**
|
| 441 |
+
|
| 442 |
+
For questions, suggestions, or collaboration, please use the Hugging Face community tab or contact the maintainer through the associated project channels.
|
| 443 |
+
|
| 444 |
+
|
| 445 |
+
## References
|
| 446 |
|
| 447 |
This file documents the main data sources, software tools, administrative boundary sources, and suggested citations for the **Black Marble Leiva Project**.
|
| 448 |
|