homehome Home chatchat Notifications


What are the average colors of the world? Data science offers a creative answer

Earth's color palette in a series of creative maps.

Tibi Puiu
July 16, 2021 @ 10:49 pm

share Share

In 1972, the Apollo 17 crew snapped one of the most famous photos ever taken, showing the Earth in all its glory for the first time in human history. The image has remained in the public consciousness as the ‘Blue Marble’ since it resembles the spherical agates we used to play with as children. Indeed, more than 70% of Earth’s surface is covered by oceans, reflecting a beautiful blue color.

The rest of terrestrial Earth, however, is much more diverse, from deserts to dense rainforest — and this shows in the richer color palette as seen from space. Data scientist Erin Davis creatively illustrated this color palette in a series of maps showing the dominant color of various regions across the globe.

Davis used a dataset from the Copernicus Sentinel-2 mission, a constellation of two identical satellites in the same orbit, each equipped with a high-resolution multispectral imager capable of taking pictures of Earth’s land and vegetation in 13 different bands.

She then ran a script in the R programming language, which she coded herself, that assigned average colors to various areas, whether entire continents, countries, or states in the US.

In a short blog post on her website, Davis explained her process as follows:

  1. Wrote a script (in R) to find the bounding boxes of all the areas I was interested in
  2. In R, downloaded pictures of those areas from Sentinel-2
  3. In R, wrote a script that created a series of commands to:
    1. Georeference the downloaded image to create a geotiff
    2. Crop the geotiff to the borders of the area
    3. Re-project the geotiff to a sensible projection
  4. Ran that GDAL script
  5. In R, converted the geotiffs back to pngs, and found the average color of the png

In the same blog post, you can find all the R scripts she used for this project, which you can adapt for your own data visualizations. Contrary to popular belief, data isn’t boring. It can be creative and beautiful with the right mindset.

share Share

Climate Change May Have Killed More Than 16,000 People in Europe This Summer

Researchers warn that preventable heat-related deaths will continue to rise with continued fossil fuel emissions.

New research shows how Trump uses "strategic victimhood" to justify his politics

How victimhood rhetoric helped Donald Trump justify a sweeping global trade war

Biggest Modern Excavation in Tower of London Unearths the Stories of the Forgotten Inhabitants

As the dig deeper under the Tower of London they are unearthing as much history as stone.

Millions Of Users Are Turning To AI Jesus For Guidance And Experts Warn It Could Be Dangerous

AI chatbots posing as Jesus raise questions about profit, theology, and manipulation.

Can Giant Airbags Make Plane Crashes Survivable? Two Engineers Think So

Two young inventors designed an AI-powered system to cocoon planes before impact.

First Food to Boost Immunity: Why Blueberries Could Be Your Baby’s Best First Bite

Blueberries have the potential to give a sweet head start to your baby’s gut and immunity.

Ice Age People Used 32 Repeating Symbols in Caves Across the World. They May Reveal the First Steps Toward Writing

These simple dots and zigzags from 40,000 years ago may have been the world’s first symbols.

NASA Found Signs That Dwarf Planet Ceres May Have Once Supported Life

In its youth, the dwarf planet Ceres may have brewed a chemical banquet beneath its icy crust.

Nudists Are Furious Over Elon Musk's Plan to Expand SpaceX Launches in Florida -- And They're Fighting Back

A legal nude beach in Florida may become the latest casualty of the space race

A Pig Kidney Transplant Saved This Man's Life — And Now the FDA Is Betting It Could Save Thousands More

A New Hampshire man no longer needs dialysis thanks to a gene-edited pig kidney.