Constel

Get constellation names from RA and DEC with Python

#!/usr/bin/python3
import sys
from astropy import units as u
from astropy.coordinates import SkyCoord, get_constellation 
coord=sys.argv[1:]
co=" ".join(coord)
c=SkyCoord(co, unit=(u.hourangle,u.deg))
print(get_constellation(c,short_name=False))

Unknown's avatar

About Linuxgal

Need a spiritual home? Consider joining us at Mary Queen of the Universe Latter-day Buddhislamic Free Will Christian UFO Synagogue of Vishnu
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment