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

A Woman Asked ChatGPT for a Palm Reading and It Flagged a Mole That Might Be Cancer

A viral TikTok recounts the story of a young woman who turned to ChatGPT for love advice but received an unsolicited medical advice instead.

This School Was Built from Sugarcane Waste. It Might Change Construction Forever

Bricks made from sugarcane waste have constructed a school in India — and are building new vision for construction.

Japan Plans to Beam Solar Power from Space to Earth

The Sun never sets in space — and Japan has found a way to harness this unlimited energy.

Everyone else’s opinion is secretly changing yours (and that's huge for disinformation)

Public opinion may be swaying you a lot more than you think.

Magic Mushroom Use Is Soaring in the U.S. With More Americans Turning to Psilocybin Than Cocaine or Meth

Use is up across all age groups, with rising poison calls and shifting perceptions

Plastics that melt in the ocean offer new hope for cleaner seas

One day we can say goodbye to microplastics.

A Forgotten Civilization in Peru Buried Its War Dead Like Heroes and Now We’re Finally Learning Who They Were

Battle-wounded skeletons and ancient textiles offer new clues about the lesser-known Chuquibamba.

Giant Planet Was Just Caught Falling Into Its Star and It Changes What We Thought About Planetary Death

A rare cosmic crime reveals a planet’s slow-motion death spiral into its star.

These Male Octopuses Paralyze Mates During Sex to Avoid Being Eaten Alive

Male blue-lined octopuses paralyze their mates to survive the perils of reproduction.

These 400,000-Year-Old Mammoth Tusks Carved by Early Humans May Be the Oldest Evidence of Prehistoric Intelligence

Ancient tusk fragments hint at early social learning 400,000 years ago