#!/usr/bin/pythonĭef get_phase_on_day(year: int, month: int, day: int): Here then, is a Python solution to your question based on the PyEphem library, using the Phases of the Moon interface. You place your trust in widely-used, well-tested, open source libraries which can have their errors corrected (unlike static web pages). Cambridge:Ĭambridge University Press, 1981. Practical Astronomy With Your Calculator. You believe that there must be authoritative sources such as books which contain careful, and complete, solutions. So it makes you nervous when you see random code scattered across the internet that purports to solve a complex astronomical problem, but doesn't explain why the solution is correct. If you're like me, you try to be a careful programmer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |