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 Dutch 17-Year-Old Forgot His Native Language After Knee Surgery and Spoke Only English Even Though He Had Never Used It Outside School

He experienced foreign language syndrome for about 24 hours, and remembered every single detail of the incident even after recovery.

Your Brain Hits a Metabolic Cliff at 43. Here’s What That Means

This is when brain aging quietly kicks in.

Scientists Just Found a Hidden Battery Life Killer and the Fix Is Shockingly Simple

A simple tweak could dramatically improve the lifespan of Li-ion batteries.

Westerners cheat AI agents while Japanese treat them with respect

Japan’s robots are redefining work, care, and education — with lessons for the world.

Scientists Turn to Smelly Frogs to Fight Superbugs: How Their Slime Might Be the Key to Our Next Antibiotics

Researchers engineer synthetic antibiotics from frog slime that kill deadly bacteria without harming humans.

This Popular Zero-Calorie Sugar Substitute May Be Making You Hungrier, Not Slimmer

Zero-calorie sweeteners might confuse the brain, especially in people with obesity

Any Kind of Exercise, At Any Age, Boosts Your Brain

Even light physical activity can sharpen memory and boost mood across all ages.

A Brain Implant Just Turned a Woman’s Thoughts Into Speech in Near Real Time

This tech restores speech in real time for people who can’t talk, using only brain signals.

Using screens in bed increases insomnia risk by 59% — but social media isn’t the worst offender

Forget blue light, the real reason screens disrupt sleep may be simpler than experts thought.

We Should Start Worrying About Space Piracy. Here's Why This Could be A Big Deal

“We are arguing that it’s already started," say experts.