data-geo / Night lights · also: WorldPop, LandScan Mosaic

VIIRS night lights

The Earth Observation Group's annual night-time lights from the VIIRS satellite sensor, one global grid a year from 2012 to 2025, at 15 arc-seconds (about 460 m at the equator). Read the files by range, or ask the API how bright any shape is, and how bright it is where people live.

Notice, as EOG's licence asks. This product was made utilizing VIIRS Nighttime Lights (VNL V2.2) data produced by the Earth Observation Group, Payne Institute for Public Policy, Colorado School of Mines. (For 2012–2021: VNL V2.1.)

The data are CC BY 4.0. EOG's licence asks that derived products, including graphs and pictures, carry this notice, and that large-format graphics carry the Earth Observation Group logo; where space is short, "Source: EOG, Colorado School of Mines." Every API answer carries the notice in notice. EOG's licence document no longer answers at its address; a copy from the Wayback Machine (captured 28 September 2026, SHA-256 422a737f…88f9) is kept here.

Cite: Elvidge, C. D., Zhizhin, M., Ghosh, T., Hsu, F.-C., & Taneja, J. (2021). Annual time series of global VIIRS nighttime lights derived from monthly averages: 2012 to 2019. Remote Sensing, 13(5), 922. doi:10.3390/rs13050922. Changes made by data-geo: EOG's gzipped GeoTIFFs re-tiled as Cloud-Optimized GeoTIFFs with every cell equal, bit for bit, to EOG's; sum pyramids and a population join computed from them; API values. An independent mirror run by Baobab Tech, not EOG's service and not endorsed by EOG; EOG's own downloads are at eogdata.mines.edu.

What it measures

Radiance in nW/cm²/sr: the light seen from space at about 1:30 at night, averaged over the year's cloud-free nights. The layer served is EOG's average_masked: EOG has already removed fires, aurora and background noise, and set unlit cells to 0. A cell is lit when its value is not 0, which is EOG's own lit_mask; data-geo adds no threshold of its own.

Two versions: V2.1 for 2012–2021 and V2.2 from 2022, processed differently. Each year is read from its own version, and every answer says which. 2012 covers April to December only (the satellite's first year).

Dark is not the same as no electricity. A village whose lights are too dim or too few for the sensor, or that EOG's background mask removes, reads 0. In 2024, 75% of Ethiopia's people lived in cells that read 0. Use unlit_share as "below what VIIRS detects", not as an access rate.

Ask the API

QuestionCall
How bright is my shape: a district, a city, a country?POST /v1/vnl/polygon?year=2025 with GeoJSON
How did it change, 2012 to 2025?years=2012-2025, or years=2015,2025, in place of year
How bright is it where people live?The same call: population in the answer, from 2015 (WorldPop R2025A's first year)
Which years are published, with each file?GET /v1/catalog (dataset vnl)
curl -X POST "https://data-geo.baobabtech.app/v1/vnl/polygon?year=2025" \
  -H "content-type: application/json" -d @kenya.geojson
→ { "year": 2025, "release": "v22",
    "mean_radiance": 0.1046, "sum_of_lights": …, "sum_of_values": …, "lit_share": …,
    "area_km2": …, "cells": …, "lit_cells": …,
    "population": { "weighted_mean_radiance": 5.365, "unlit_share": 0.3755, "people": …, … },
    "notice": "This product was made utilizing VIIRS Nighttime Lights (VNL V2.2) data produced by …", … }
FieldMeans
mean_radianceMean radiance over the shape's area, nW/cm²/sr (each cell weighted by its area on the sphere)
sum_of_lightsRadiance × cell area, added up: nW/sr. Compares shapes of different sizes in absolute light.
sum_of_valuesRadiance added over cells, unweighted: the "sum of lights" most papers use
lit_shareShare of the area in lit cells
population.weighted_mean_radianceMean radiance where people live: each WorldPop 100 m cell takes the light of the VNL cell under its centre, weighted by its people
population.unlit_shareShare of people in cells that read 0
Shape, 2025Mean radianceWhere people livePeople in unlit cells
Addis Ababa, city boundary28.0241.700.00%
Nairobi county16.4730.260.02%
Kenya (geoBoundaries ADM0)0.1055.3737.6%

Radiance in nW/cm²/sr. Kenya in 2015 (V2.1): 0.037, 3.10 and 57.4%. A city answers in 1–4 s the first time and under half a second after; a country in a few seconds; all 14 years of Addis Ababa in about 40 s (7 November 2026). Every figure equals a cell-by-cell computation on EOG's values.

The world, year by year

YearVersionLit land and seaWhere people livePeople in unlit cells
2012V2.12.28%
2015V2.12.35%13.8621.4%
2018V2.12.50%14.8919.9%
2021V2.12.67%15.4819.1%
2022V2.22.66%15.3519.1%
2025V2.22.95%17.0617.8%

Share of the grid's area (75° N to 65° S, sea included) in lit cells; mean radiance where people live, nW/cm²/sr; WorldPop R2025A people.

How the answers are computed

A VNL cell belongs to a shape when its centre is inside it, the rule every dataset here uses. Radiance is not a count, so the cells are not added up as they are: each cell keeps its value v and its area a on the sphere, and the API adds up v·a, a, v and the lit cells, then divides at the end. A mean of means would weigh a small cell like a large one; this does not.

Those sums are also stored for blocks of 2 × 2 and 20 × 20 cells (about 1 km and 10 km). Blocks wholly inside the shape count as one stored number each, and only the cells along the edge are read one by one, from the radiance file itself. The answer is the same as adding up every cell, and a country takes seconds.

For the population figures, each WorldPop 100 m cell takes the radiance of the VNL cell under its centre. VNL's cell centres sit on whole multiples of 15 arc-seconds, half a cell off WorldPop's grid; the match is made in whole numbers, and a 100 m centre that falls exactly on a VNL edge goes to the cell east and south. People × radiance, people, and people in unlit cells are stored on WorldPop's 1 km and 10 km grid, so the population figures are computed the same way: blocks inside the shape from the store, 100 m cells along the edge one by one.

Every answer's method says what was read: the blocks used, the edge cells, the files and bytes. The counting itself is described, with diagrams and measured speeds, in how it works, written for WorldPop.

Read the files

FileWhat
vnl/{release}/{year}/average_masked.tifRadiance, one global Cloud-Optimized GeoTIFF a year: EOG's values, float32, every cell equal as bits to EOG's file. 128 × 128 tiles. About 300–350 MB a year. {release} is v21 for 2012–2021 and v22 from 2022.
vnl/{release}/{year}/lit_mask.tifEOG's lit mask, uint8: 1 lit, 0 not
vnl/{release}/pyramid/{year}/1km.tif, 10km.tifSums over 2 × 2 and 20 × 20 cells, float64: v·a, a, v, valued cells, lit cells, lit a (a in km²)
vnl/{release}/popjoin/{year}/1km.tif, 10km.tifOn WorldPop's 1 km and 10 km grid, from 2015: people × radiance, people with a radiance, people in unlit cells, people, joined 100 m cells
vnl/{release}/manifest.json, stac/catalog.jsonEvery file with its size and SHA-256, EOG's source file and its SHA-256; a STAC collection with one item per year
# GDAL: read only the window you need
gdal_translate -projwin 36.65 -1.16 37.10 -1.45 \
  /vsicurl/https://data-geo.baobabtech.app/vnl/v22/2025/average_masked.tif nairobi_2025.tif

# rasterio
import rasterio
from rasterio.windows import from_bounds
with rasterio.open("https://data-geo.baobabtech.app/vnl/v22/2025/average_masked.tif") as f:
    a = f.read(1, window=from_bounds(36.65, -1.45, 37.10, -1.16, f.transform))

The grid is 86,401 × 33,601 cells of 15 arc-seconds, from 75° N to 65° S, cell centres on whole 15 arc-seconds (EOG's own grid, unchanged). 2012 is EOG's April–December file; 2012 and 2013 are without stray-light correction (vcmcfg), later years with it (vcmslcfg).

What is checked

Limits and status codes: the front page. For agents: /llms.txt; for tools: /openapi.json.