---
title: "Visualizing the spectrum of the sun"
date: 2022-02-19T00:00:00Z
url: https://kmcd.dev/posts/sun-spectra-image.svg/
tags: ["dataviz","spectrum","sun","light","python","svg","data","science"]
categories: ["article","project"]
description: "Visualizing the visual spectrum of the sun. Spectrum analysis, wavelengths of light, data visualization"
---


## Basic Details

We all know the light that we get from the sun is white, meaning it contains about the same amount of every single color. If it had more green than other colors then the sun would give off green light. That's awesome. Except... it's not really true. There are certain colors that the sun does NOT give us. There are essentially holes in every rainbow. And the images below show exactly where those holes are.

[Github](https://github.com/sudorandom/sun-fingerprint) | [All output images](https://github.com/sudorandom/sun-fingerprint/tree/main/output)

-------
## The sun's spectra (visible light)
![Spectra of the sun in the visible spectrum](/posts/sun-spectra-image.svg/visible.svg "The Sun")
[Click here to see the full resolution](/posts/sun-spectra-image.svg/visible.svg)

## The sun's spectra (full spectrum)
I also made a version that shows the NON-visible spectrum. I can't use pretty colors for this because we literally don't have colors to map this part of the spectrum to. So I used greyscale (a gradient from black to white) to denote the intensity of this kind of light emitted from the sun. The image looks blurry but that's an artifact of how precise the data is.

![Spectra of the sun in all spectrums](/posts/sun-spectra-image.svg/non-visible.svg "The Sun")
[Click here to see the full resolution](/posts/sun-spectra-image.svg/non-visible.svg)


## The sun's spectra (annotated)

I also made a version that has text that describes what you're seeing.

![Spectra of the sun, annotated](/posts/sun-spectra-image.svg/annotated.svg "The Sun")
[Click here to see the full resolution](/posts/sun-spectra-image.svg/annotated.svg)

