Identifying Sun and Moon Transits


Senior Member
I wrote a python program for identifying potential sun or moon transits involving a certain observer location but an uncertain observing time and/or date. It searches a TLE file containing satellite orbits for transits of the sun or moon over a user-specified number of days at a given location and outputs the name of the satellite, the time of the transit, and the azimuth and altitude of the sun or moon at the time of the transit.

One limitation here is that it assumes that you are specifying precise coordinates for the observer; it will not find nearby transit corridors, only transits the user is actually able to observe at those coordinates. It can also miss edge cases where the satellite is clipping the edge of the sun or moon for < 1 second. Other than that it will search second by second through every satellite in the TLE file to compile a list of all transits that occurred over 1 or more days, provided the orbital elements are current to within a few days of the transit prediction (it skips any elements that are way out of date).

It uses Python and PyEphem. An installation tutorial for the dependencies can be found here, but you won't need OpenCV or ImUtils:

You execute the program from the command line by typing python latitude(North is positive) longitude(East is positive) elevation(meters) yyyy-mm-dd hh:mm:ss (of the start of the search) xxx.txt(TLE file containing satellite orbital elements) moon/sun(case insensitive) duration of search(whole number of days)

I tested it against CalSky and it seems to be accurate, but it's far more comprehensive than CalSky since you can load orbital elements for satellites that may not be in the CalSky database at the time. Enjoy.
Thread starter Related Articles Forum Replies Date
M Identifying this triangular UFO Skydentify - What is that Thing in the Sky? 32
Stefan Leahu Help identifying lights on the ocean surface, Pacific Skydentify - What is that Thing in the Sky? 3
jarlrmai Resource for identifying the area of the night sky shown in a photo Skydentify - What is that Thing in the Sky? 0
J Identifying the Mountains in JTolan's "Rocky Mountains" IR Video Flat Earth 31
Astro Predicting and identifying all future SDO eclipses Skydentify - What is that Thing in the Sky? 0
ki_cz Help identifying odd flights Skydentify - What is that Thing in the Sky? 8
steve holmes Problems with Identifying Contrails in FlightRadar24 Contrails and Chemtrails 57
Trailblazer Identifying: faked image of Earth from space (artwork, not "official") Flat Earth 4
Lisa P Identifying a plane over San Francisco [B99988 - Gulfstream GL650] Skydentify - What is that Thing in the Sky? 20
JesseCuster Identifying satellites Skydentify - What is that Thing in the Sky? 16
Mick West Identifying Landing Lights Reported as UFOs Skydentify - What is that Thing in the Sky? 45
derrick06 Any tips for identifying CGI in fake UFO videos? Skydentify - What is that Thing in the Sky? 4
M Bornong A little help identifying a flight? Skydentify - What is that Thing in the Sky? 12
Mark Dobson Help identifying this object [Bolide / Meterorite] Skydentify - What is that Thing in the Sky? 10
JRBids Identifying chemtrail planes Contrails and Chemtrails 11
Gunguy45 Help identifying odd clouds General Discussion 18
J Alien structure near Zeeman Crater on Moon? UFOs and Aliens 6
J Red Triangle on face of the moon Skydentify - What is that Thing in the Sky? 15
DavidB66 Explained: Student in Teignmouth, Devon sees UFO [Moon Obscured by Clouds] UFOs and Aliens 35
P Slow, Splitting UFO - Wilminton, CA - Moon Through Clouds? UFOs and Aliens 6
Mick West Solved: "Double Moon", Dubai, UAE. [Projection] Ghosts, Monsters, and the Paranormal 32
J Strange lights on picture of the moon during "Blood Moon" [Stuck Pixels] Skydentify - What is that Thing in the Sky? 10
I Moon moving "faster" than clouds Skydentify - What is that Thing in the Sky? 9
R Claim: Apollo 15-17 Live TV Feed - Antenna signal would be interrupted from all the violent shaking when Astronauts touch the buggy General Discussion 26
Getoffthisplanet [Fake] UFO's Casting Shadows On The Moon - "OVNI sur la Lune , 2020-03-26" Skydentify - What is that Thing in the Sky? 23
Nandude Light Fall Off in Apollo Missions - American Moon Documentary Conspiracy Theories 16
A Debunked: NASA tampered with the original television audio of the Apollo 11 moon landing Conspiracy Theories 1
A Debunked : Fake Set Moon Landing with TV Camera and Stairs Conspiracy Theories 3
Staffan Debunked: Wikileaks releases unused footage of moon landing (Capricorn One movie scenes) Conspiracy Theories 2
Mick West Recording ISS Transits of the Sun and Moon Flat Earth 4
mudr0 Claim: Australia was not visible from the moon for Apollo 11 Broadcasts Conspiracy Theories 7
Z.W. Wolf Claim: Moon Passing The Meridian Disproves Globe Earth Flat Earth 0
Rory Debunked: The Lunar Cycle affects birth rates Health and Quackery 33
Rory Debunked: Study shows link between menstrual cycle and the moon Health and Quackery 76
Mick West Multiple UFOs Fly Across Moon- Birds? Skydentify - What is that Thing in the Sky? 17
Mick West Explained: Mysterious Red Planet Like Object Filmed Next To The Moon. Atglen [Reflection] UFOs and Aliens 0
Leifer "Mars will be as big as the Moon" no, it won't. Science and Pseudoscience 11
F WHAT IS THIS LINE? (on my Super Blue Blood Moon Photo) - Smarter Every Day 188 Skydentify - What is that Thing in the Sky? 11
Mick West Plane Flies in Front of Super Blue Blood Moon Eclipse Images and Videos: Contrails, Skies, and Aviation 1
Rory Dublin Moon and sun in same sky disproves Spherical Earth Flat Earth 16
txt29 Apollo 17: alleged inconsistency of shadows Conspiracy Theories 34
Jared Some proof The Moon is not it's Own Light Source Flat Earth 2
nickrulercreator [Debunked] Apollo 14 Flag Waving Before Ascent? Science and Pseudoscience 21
HoaxEye 6 Giant Towers discovered on the Moon [Digital Artifacts/Glitches] UFOs and Aliens 33
Mick West Explained: Moon Terminator/Shadow UFOs UFOs and Aliens 1
Trailblazer Measuring the distance to the moon with laser reflections and the speed of light Flat Earth 5
Abishua The Moon Tilt & Terminator Illusions Flat Earth 54
drhex Explained: Apollo 17 Photo of Earth from Moon Seems too High Conspiracy Theories 16
C Interesting observation of moon light phenomena i can't find the answer to ???? General Discussion 4
Whitebeard Contrail on Moon Disc? Contrails and Chemtrails 12
Related Articles

Related Articles