File size: 5,932 Bytes
75f079c
 
4ac0fff
 
 
 
 
 
af5cda3
 
 
 
 
75f079c
 
d03c75c
 
 
82c7834
 
75f079c
82c7834
 
 
75f079c
82c7834
c21126c
82c7834
c21126c
82c7834
 
 
c21126c
82c7834
75f079c
82c7834
a7bf6c2
82c7834
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c21126c
82c7834
c21126c
82c7834
c21126c
82c7834
c21126c
82c7834
 
 
 
 
 
 
 
 
 
 
 
75f079c
82c7834
 
 
 
 
 
 
 
 
c21126c
82c7834
75f079c
82c7834
 
 
 
75f079c
82c7834
4ac0fff
 
82c7834
 
 
 
 
 
 
 
4ac0fff
82c7834
 
 
 
4ac0fff
 
82c7834
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4ac0fff
84e4b33
4ac0fff
 
 
82c7834
4ac0fff
 
82c7834
4ac0fff
 
 
 
 
ea6431a
84e4b33
4ac0fff
 
 
 
c21126c
82c7834
 
af5cda3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---
license: cc-by-4.0
tags:
- earth-observation
- remote-sensing
- satellite
- geospatial
- night-lights
configs:
- config_name: default
  data_files:
  - split: train
    path: INDEX.parquet
---


![darktom_1](https://cdn-uploads.huggingface.co/production/uploads/6304c06eeb6d777a838eab63/BURIJVY40Q2IxBjWt-1vt.png)

# Major TOM Core VIIRS Nighttime Light
Annual radiance composites from the Visible Infrared Imaging Radiometer Suite (VIIRS) Day/Night Band (DNB), packaged on the Major TOM grid.

| Source | Modality | Number of Patches | Patch Size | Total Pixels |
|:-------|:--------:|:-----------------:|:----------:|:------------:|
| VIIRS Nighttime Light | Nighttime Light | 2,108,341 | 1056 × 1056 (10 m) | > 2.3 trillion |

**Authors:** Marcin Kluczek ([CloudFerro](https://cloudferro.com)), Mikolaj Czerkawski ([Asterisk Labs](https://asterisk.coop)), Cesar Aybar ([Asterisk Labs](https://asterisk.coop)), Jędrzej S. Bojanowski ([CloudFerro](https://cloudferro.com))

# Content

| Variable | Description | Units |
|----------|-------------|-------|
| `median` | Median annual radiance | nW/cm²/sr |

> Additional modalities (`average`, `average-masked`, `median-masked`, `min`, `max`, `cf_cvg`, `cvg`) will be supplied later.

Source product:
[Annual VIIRS Nighttime Lights V2](https://eogdata.mines.edu/products/vnl/)
- 2016–2021: Annual VNL V2.1
- 2022–2024: Annual VNL V2.2

Per-year patch counts:

| Year | Patches |
|-----:|--------:|
| 2016 | 55,780 |
| 2017 | 20,541 |
| 2018 | 85,109 |
| 2019 | 412,181 |
| 2020 | 384,748 |
| 2021 | 378,299 |
| 2022 | 422,468 |
| 2023 | 348,773 |
| 2024 | 442 |

# Spatial Coverage

Global, on the Major TOM 10 m grid, spanning approximately 75°N to 65°S in latitude and the full 180°W to 180°E longitude range. This is a global monotemporal dataset: nearly every land patch is contained at least once per year, with only marginal overlaps.

# Cloud Optimized ZIP (cozip)

This dataset is published as **cozip** archives — standard ZIP files arranged so that any individual patch can be fetched in a single HTTP range request, without downloading the whole shard. cozip is developed by [Asterisk Labs](https://github.com/asterisk-labs/taco/tree/main/cozip).

**Layout on disk:**
```
INDEX.parquet                                  # global catalog of all patches
2016/MAJORTOM-VIIRS-NTL_2016_median_000.zip    # cozip shards (~4 GiB each)
2016/MAJORTOM-VIIRS-NTL_2016_median_001.zip
...
2024/MAJORTOM-VIIRS-NTL_2024_median_000.zip
```

**`INDEX.parquet`** is a GeoParquet catalog with one row per patch. Key columns:

| Column | Meaning |
|--------|---------|
| `name` | Patch filename (`MT10_<col>D_<row>L_<year>_median.tif`) |
| `shard` | Relative path to the cozip shard that holds this patch |
| `offset`, `size` | Byte range inside the shard — the raw GeoTIFF payload |
| `id`, `majortom:code_100km`, `majortom:code_1000km` | Major TOM grid identifiers |
| `geometry`, `bbox` | Patch footprint (WGS84) |
| `admin:country/state/district` | Administrative attribution |
| `terrain:elevation`, `climate:*`, `soil:*`, `socio:*` | Co-located covariates |

## Quick start

Install the reader:
```bash
pip install cozip rasterio pandas pyarrow
```

**Read the global catalog** and stream one patch directly from the Hub — no full-shard download:

```python
import cozip
import rasterio

# Read INDEX.parquet from anywhere (local path or https URL).
df = cozip.read("https://huggingface.co/datasets/Major-TOM/Core-VIIRS-Nighttime-Light/resolve/main/INDEX.parquet")

# Pick a patch by id (or filter by bbox, country, year, etc.).
row = df[df["id"] == "MT10_696D_231L"].iloc[0]

# `cozip:gdal_vsi` is a /vsisubfile/ path GDAL can open directly.
with rasterio.open(row["cozip:gdal_vsi"]) as src:
    arr = src.read(1)
    print(arr.shape, src.crs, src.bounds)
```

**Read a single shard's metadata only** (when you already know which shard you want):

```python
df = cozip.read("https://huggingface.co/datasets/Major-TOM/Core-VIIRS-Nighttime-Light/resolve/main/2020/MAJORTOM-VIIRS-NTL_2020_median_000.zip")
print(len(df), "patches in this shard")
```

**Pure-Python access** (no GDAL, just an HTTP Range request):

```python
import requests, io, rasterio

url = f"https://huggingface.co/datasets/Major-TOM/Core-VIIRS-Nighttime-Light/resolve/main/{row['shard']}"
off, sz = int(row["offset"]), int(row["size"])
blob = requests.get(url, headers={"Range": f"bytes={off}-{off + sz - 1}"}).content
with rasterio.io.MemoryFile(blob) as mem, mem.open() as src:
    arr = src.read(1)
```

# Cite
[![arxiv](https://img.shields.io/badge/Open_Access-arxiv:2402.12095-b31b1b)](https://arxiv.org/abs/2402.12095/)
```latex
@inproceedings{Major_TOM,
  title={Major TOM: Expandable Datasets for Earth Observation},
  author={Alistair Francis and Mikolaj Czerkawski},
  year={2024},
  booktitle={IGARSS 2024 - 2024 IEEE International Geoscience and Remote Sensing Symposium},
  eprint={2402.12095},
  archivePrefix={arXiv},
  primaryClass={cs.CV}
}
```

# VIIRS Nighttime Light products credit

Many thanks to [**Earth Observation Group (EOG)**](https://payneinstitute.mines.edu/eog/), part of the Payne Institute for Public Policy at Colorado School of Mines, especially **Christopher D. Elvidge**, for their support and consultation.

```
- C.D. Elvidge, M. Zhizhin, T. Ghosh, F-C. Hsu, "Annual time series of global VIIRS nighttime lights derived from monthly averages: 2012 to 2019", Remote Sensing, 2021, 13(5), 922. https://doi.org/10.3390/rs13050922.
- C.D. Elvidge, K. Baugh, M. Zhizhin, F.-C. Hsu, and T. Ghosh, "VIIRS night-time lights," International Journal of Remote Sensing, vol. 38, pp. 5860–5879, 2017. https://doi.org/10.1080/01431161.2017.1342050.
- C.D. Elvidge, K.E. Baugh, M. Zhizhin, and F.-C. Hsu, "Why VIIRS data are superior to DMSP for mapping nighttime lights," Asia-Pacific Advanced Network 35, vol. 35, p. 62, 2013. http://dx.doi.org/10.7125/APAN.35.7.
```