Files
astronomy/demo/python/test/.gitignore
Don Cross a9b9652c5d Added sample Python program stars_near_moon.py.
Tonight as I was walking outside, I saw a fairly bright
star about half a degree away from the edge of the Moon.
I wondered what it was, so I decided to write a quick
program to find out.

This Python demo program scans the HYG Database
(https://github.com/astronexus/HYG-Database)
to find which bright stars are within a small angular
distance of the Moon, as seen at a given time, latitude, and longitude.

It turns out the star I saw was Nunki (Sigma Sagittarii).

It was handy to do vector subtraction to implement this program,
and it was trivial to do in the Python code's Vector class,
so I went ahead and added that.
2021-11-08 21:44:36 -05:00

16 lines
221 B
Plaintext

camera.txt
constellation.txt
moonphase.txt
positions.txt
riseset.txt
seasons.txt
culminate.txt
horizon.txt
lunar_eclipse.txt
lunar_angles.txt
jupiter_moons.txt
galactic.txt
triangulate.txt
gravity.txt
stars_near_moon.txt