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

What Happens When You Throw a Paper Plane From Space? These Physicists Found Out

A simulated A4 paper plane takes a death dive from the ISS for science.

A New Vaccine Could Stop One of the Deadliest Forms of Breast Cancer Before It Starts

A phase 1 trial hints at a new era in cancer prevention

After 700 Years Underwater Divers Recovered 80-Ton Blocks from the Long-Lost Lighthouse of Alexandria

Divered recover 22 colossal blocks from one of the ancient world's greatest marvels.

Scientists Discover 9,000 Miles of Ancient Riverbeds on Mars. The Red Planet May Have Been Wet for Millions of Years

A new look at Mars makes you wonder just how wet it really was.

This Is Why Human Faces Look So Different From Neanderthals

Your face stops growing in a way that neanderthals' never did.

Ozempic Is Changing More Than Waistlines as Scientists Wise Up to Concerning Side Effects

But GLP-1 drugs also offer many benefits beyond weight loss.

Researchers stop Parkinson's symptoms in mice using a copper supplement. Could humans be next?

Could we stop Parkinson's by feeding neurons copper?

There's a massive, ancient river system under Antarctica's ice sheet

This has big implications for our climate models.

I Don’t Know Who Needs to Hear This, But It's Okay to Drink Coffee in the Summer

Finally, some good news.

New Blood Test Reveals How Fast Your Organs Are Aging. Your Brain’s Biological Age May Hold the Key to How Long You Live

People with "older" brains had a much higher risk of dying compared to "younger" brains.