Threadlands

How it works

The short version, then the detail for anyone who wants it.

Open any section below for the full method and sources.

Where the data comes from

Open satellite and map data, free for the whole planet.
Place outlines
OpenStreetMap, through its Nominatim search service. Rivers and streams also come from OpenStreetMap, because satellites miss narrow ones.
Land cover
ESA WorldCover 2021, a 10-meter map of trees, shrubs, grass, cropland, built-up land, bare ground, water and wetland for the whole planet.
Elevation
Copernicus DEM GLO-30, a 30-meter elevation model from the European Space Agency.
Population
WorldPop 2020, about 1 km resolution, counted country by country.
River basins
HydroBASINS from WWF HydroSHEDS. Threadlands follows every sub-basin upstream of the city to outline the land that drains toward it.
Surface heat
Landsat 8 and 9 Collection 2 surface temperature from USGS and NASA, 2021 to 2025, clear skies only.
Local heat hot spot
“Typical” is the median daytime surface temperature of all land in the place’s modeled region on the same day. For each clear Landsat pass (about 10:30 in the morning, up to 20 passes from 2021 to 2025, in the three hottest months, or all year in the tropics), every patch of about 1 km² is compared with that regional median, and the middle value across passes is kept. A patch at least 2°C above it is a local heat hot spot. Because each region is compared with itself, a hot-climate region can have few hot spots, and a cool one can have many. It measures ground temperature, not air temperature or health risk.
This week
Twice a week, a robot finds the latest clear Landsat pass over every place in the library, from the past six weeks, and compares its surface temperature with passes in the same weeks of up to six earlier years. Landsat crosses each place about every eight days at mid-morning, so a reading can be a few days old, and clouds can hide a place for weeks.
Climate
The IPCC Sixth Assessment Report for warming, heavy rain and sea level; Zhao and others, 2017, for crop yields under heat.

Satellite and map data are reached through Microsoft Planetary Computer.

How Studio works

Real streets, real prices, growing year by year to 2050.

Studio lets you design a place element by element. From above, you paint whole hexes; zoom in to street level, over an OpenStreetMap street map, and you draw real shapes instead: a rectangle or outline for an urban farm, park, pond, rain garden, green roof, solar array or housing site, and a line for street trees, a transit route or a wildlife corridor. Each shape is measured in square meters or meters, priced from those quantities, and spread across the hexes it touches. Every element changes the same Threadlands model the Explore page uses:

  • Street trees, green roofs and urban farms add shade and greenery to a built-up hex, which lowers its heat load and adds a little rain storage. Farm plots and full urban farms also grow food. Urban farms yield about as much per square meter as field crops (Payen and others, 2022), and Studio counts people fed at about 0.19 ha of cropland per person. Redeveloping built land into a farm or park includes the cost of clearing it.
  • Rain gardens cut the flood exposure of the homes in their hex and add to the region’s storage.
  • Ponds, wetlands, forests and corridors change the land itself: they store floodwater, cool their neighbors and join up wildlife habitat.
  • Regenerative farming helps farmland hold water and survive drought.
  • Transit lines raise the low-carbon travel score. Infill housing makes room for more people in existing neighborhoods, so the farthest sprawl can stay unbuilt.
  • Solar roofs report clean power from the roof area and the place’s latitude.

At street level, Studio loads the real buildings, parking lots, vacant lots, parks and streets from OpenStreetMap, so you can click a real place to transform it, or draw with points that snap to real corners. The 3D view raises every building to its mapped height, or an estimate from its type and neighborhood where none is mapped. New buildings rise to the floors you set, adding homes; sea walls and levees rise to the height you set, shielding flood-prone land up to about 3 km behind them.

Everything exports for GIS. On Explore, Download GIS layers saves every hex of a place, with its land cover, people, elevation, heat, flooding and habitat, as one GeoJSON file that opens in QGIS or ArcGIS. In Studio, Download design for GIS saves every element you placed, with its size, cost and settings.

Things take time. Trees reach full canopy in about 15 years, wetlands mature in about 8, forests in about 20, and transit takes about 5 years to build. The year slider grows each element and warms the climate step by step toward the middle-path 2050 scenario, and every score is compared with doing nothing in the same year. Costs come from published US studies, adjusted to each country, and are listed with sources on the Studio page.

How a place gets built

Any place builds itself automatically in about ten minutes.
  1. Find the outline. The place is looked up in OpenStreetMap. Small places get a ring of surrounding land, so a town brings its farms, rivers and forests with it.
  2. Lay a grid of hexes. The hex size adapts to the area, from about half a square kilometer for a city to much larger for a country.
  3. Fill each hex. Land cover, elevation, population, rivers and a flood screening value are averaged into every hex.
  4. Add the regional threads. The river basin upstream of the city and the farmland within 50, 100 and 250 km.
  5. Check the heat against satellites. Up to 20 clear Landsat scenes are averaged into a measured surface temperature for each hex.
  6. Save it to the library. A robot on GitHub does all of this in a few minutes, and the place then opens instantly for everyone.

The same steps also run as free Google Colab notebooks, for anyone who wants to build a place by hand or check the work. They are in the project on GitHub.

How the model works

The formulas behind every score, and how they were checked.

Every place is a set of hexes. Each hex carries its share of built-up land, trees, shrubs, grass, cropland, bare ground, water and wetland, plus its population, elevation and a flood screening value. The levers change the cover of specific hexes, and five scores are computed from the new map. Scores run from 0 to 100 and compare scenarios within one place. The weights are modelling choices made so that the levers trade off against each other. They are not forecasts.

Reading the map
A hex counts as built up when a quarter or more of it is buildings and paving. Built-up hexes split into dense core, mid-density and sprawl edge by population per km². Green hexes surrounded by city on three or more sides become city parks. Where none exist, new park sites go in the densest districts.
Heat relief
Each built-up hex gets a heat load, set three quarters by how much of it is paved or roofed and one quarter by population density. Street trees lower it, and so do cool neighbors such as forest, wetland, water, parks, greenways and farmland. Compact growth raises density because the same people live on less land.
Flood safety
A hex is flood-prone when a river runs through it, or when it sits within about 2 km of a river, lake or sea and less than 5 m above it. Rivers come from OpenStreetMap, because satellites miss narrow ones. Canals and small streams are drawn on the map but are not treated as flood sources, since most are controlled channels. People living in flood-prone built-up hexes carry the exposure. Restored wetlands hold the most water, with street trees and regenerative soils adding a little.
Habitat network
Forest, wetland, open grassland, water, parks, corridors and regenerative farms count as habitat. The score blends how much habitat exists, how much of it sits in one connected network, and how many city parks join that network. Corridors follow the cheapest path from the largest natural area to each park, avoiding dense districts where they can.
Local food
Cropland in the region is compared with what its people would need at about 0.19 hectares each, roughly the world average. Regenerative farms yield slightly less in a normal year and hold up much better in a drought. Farms near restored wetlands keep more water in a dry year.
Satellite heat check
The place builder adds measured surface temperature from Landsat 8 and 9 (2021 to 2025, clear skies only; the three hottest months outside the tropics, the whole year inside them). Each scene is compared with its own typical land temperature, and the median across scenes is kept, so hotter and cooler days can be pooled. The page then compares that measured pattern with the model’s heat estimate using a rank correlation over built-up hexes. The first check, on Milan, showed the model leaning too hard on population density (correlation 0.38): warehouses and rail yards with few residents were among the hottest ground. Heat intensity now follows built-up surface for three quarters and population density for one quarter, which lifts Milan to 0.62. Without further tuning, the same change lifts San Francisco from 0.28 to 0.49 and Bangkok from 0.74 to 0.81. Land within a few kilometers of a large sea, bay or lake also gets a modest sea-breeze cooling. San Francisco’s fog is a different matter: built-up land on the Pacific side measures about 0.7 °C below typical land, while the Bay shore runs 2 to 3 °C above it, because the fog comes from cold upwelling ocean water and the prevailing wind, not from nearness to water. No simple rule captures that, so wherever a place has satellite readings, the model corrects each built-up hex toward the measured value (70% of the gap, less where few clear scenes exist). The match figures shown are for the model before that correction, so the check stays honest.
2050 stress test
The climate switch reruns every score for about 2050. Global warming reaches about 2.0 °C on a middle path (SSP2-4.5) and 2.4 °C at high emissions (SSP5-8.5), compared with 1.09 °C in 2011–2020, and land warms about 1.46 times as fast as the global average. That gives about 1.3 °C or 1.9 °C of extra summer heat over land. Heat load rises 10% per degree, and the harm from heat rises a further 20% per degree, because dangerous hot days multiply faster than average warming: the average city gains about 29 more days above 35 °C at 3 °C than at 1.5 °C (World Resources Institute, from CMIP6), and heat deaths are projected to rise 370% by 2050 at 2 °C (Lancet Countdown, 2023). Heavy rain grows about 7% more intense per degree, and flood harm rises with it a second time, because storms overflow drains sized for today. Seas rise about 20 to 23 cm, which counts heavily on low coastal land: floods that came once a century are projected to come every year at many coasts by 2050 (IPCC SROCC). Crop yields fall about 4% per degree, and twice that on conventional farms in a dry year, while living soils hold up better. Climate figures come from the IPCC Sixth Assessment Report; crop figures from Zhao and others, 2017.
Where to start
Each action gets its own ranking on today's map. Street trees go first where heat load and population are highest. Wetlands go first on low floodplain land with the most people in flood-prone homes within two hex rings. Corridors start with parks that are cut off from the main habitat, favoring short links near many people. Regenerative farming starts on farmland in the floodplain or next to habitat. Compact growth starts with the outermost sprawl, sooner where it floods. Sites that touch a site already listed are skipped, so each list covers more ground.
Costs and benefits
The Explore page turns each plan into rough sizes, costs and yearly benefits: street trees counted at up to about 850 per km² of built-up land, and hectares of new wetland, corridor and regenerative farmland counted from the hexes that change. Unit costs and benefits come from published US studies, listed with links under “Sources and assumptions” on the Explore page. They are order-of-magnitude figures for comparing plans, scaled to each country’s price level with World Bank data and shown in US dollars.
Low-carbon travel
Rises as sprawl is pulled back, with a small bonus for greenways and shade that make walking easier.
Stress testMade of
Heatwave50% heat relief, 25% habitat network, 25% local food
River flood50% flood safety, 25% habitat network, 25% local food
Drought year40% local food in a dry year, 20% water storage, 20% heat relief, 20% habitat network
Resilience index80% average of the three tests, 20% low-carbon travel

Levers cost different amounts per point: shade 0.9, corridors 0.6, wetlands 0.85, regenerative farming 0.8 and compact growth 1.6, against a cap of 240. The best-mix search tries every combination in steps of 20 that fits the cap. Several quite different mixes often score within a point or two of the best, so there is usually more than one good route.