johnnygreco / love-thy-pixels

Spreading the love for galaxies one pixel at a time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ‘Ύ Love thy Pixels πŸ‘Ύ


Overview

This repo contains material from part of a week-long program at Ohio State for middle schoolers. This particular activity uses ltpix (Love thy Pixels), a pedagogical software package designed to give the students hands-on experience in coding and image processing. And because they make the most beautiful images, the subject matter is stars and galaxies!


🎒 Activity Outline

(1) Intro to Jupyter Notebooks and Python

(2) Intro to Images

(3) Galaxy Images!

(4) Galaxy Colors and Ages!

(5) Exploring the Sky


πŸ‘©β€πŸ’» Code Example

from ltpix import AstroImage

# Enter the galaxy number (1, 2, 3, or 4) into 
# the parentheses like this AstroImage(<galaxy number>)
galaxy = AstroImage(2) 

galaxy.display_rgb_image()

galaxy_2

🎨 Extracting information from star colors!

Star clusters are groups of stars that are born at approximately the same moment in time. Interestingly, it turns out that the average color of such a group of stars is directly related to how old they are! Of course, understanding the details of this relationship is an entire field of research. Nevertheless, we can learn a lot about star clusters by measuring their colors. The above images are simulations, created using ArtPop, which show how the color of a population of stars evolves with time.

About

Spreading the love for galaxies one pixel at a time

License:MIT License


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%