John Walker's moontool.c astronomical calculation routines, extracted and ported to Python.
Project description
Moontool
John Walker's moontool.c astronomical calculation routines, extracted.
Original
The original versions, moontool and moontoolw, are available at John Walker's fourmilab.ch.
Backup copies are included in the original/
directory
of this repository.
License
Walker's program is in the public domain, and so is this project.
In Walker's words:
Do what thou wilt shall be the whole of the law.
CLI
This version includes functions that compute info about the Moon, in a way similar to the original program.
The CLI wraps these functions.
$ moontool 1994-12-22T13:53:34
Phase
=====
Julian date: 2449709.07887 (0h variant: 2449709.57887)
Universal time: Thursday 13:53:34 22 December 1994
Local time: Thursday 14:53:34 22 December 1994
Age of moon: 18 days, 22 hours, 29 minutes.
Lunation: 64.13% (🌖 Waning Gibbous)
Moon phase: 81.56% (0% = New, 100% = Full)
Moon's distance: 386212 kilometres, 60.6 Earth radii.
Moon subtends: 0.5157 degrees.
Sun's distance: 147151251 kilometres, 0.984 astronomical units.
Sun subtends: 0.5420 degrees.
Moon Calendar
=============
Last new moon: Friday 23:54 UTC 2 December 1994 Lunation: 890
First quarter: Friday 21:06 UTC 9 December 1994
Full moon: Sunday 2:18 UTC 18 December 1994
Last quarter: Sunday 19:07 UTC 25 December 1994
Next new moon: Sunday 10:56 UTC 1 January 1995 Lunation: 891
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡠⠤⠀⠠⠀⠀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣠⠶⡥⠤⠖⠢⠴⢭⠭⡖⢔⠦⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠔⠓⢱⣎⣵⠚⠀⠀⠀⠀⠉⢿⣁⣷⣿⠙⢆⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢠⠊⠁⠀⣀⠈⠁⠀⠀⡀⠀⠀⠀⢘⡗⠁⠈⠘⠙⠂⠀⠀⠀⠀⠀⠀
⠀⢠⡋⠀⡄⠁⠀⡢⣀⠰⣀⠂⠀⣀⣠⢉⠄⠀⠀⠀⠑⠀⠀⠀⠀⠀⠀⠀
⠀⣮⣥⠀⠀⢰⣁⣱⢈⡆⢘⣕⠂⠂⠀⠈⠈⡶⠢⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⣇⢹⣇⢀⠀⠀⢉⢤⢛⡏⠥⡀⠘⠲⢤⣼⡕⠀⠀⢀⣄⠄⠀⠀⠀⠀⠀
⠈⣿⢿⣳⣮⣀⡀⠳⠌⠀⠻⢠⣼⠷⡎⢩⠉⠔⢠⠀⠾⠿⡅⠀⠀⠀⠀⠀
⠀⣟⡿⠟⣏⠀⠉⢐⠥⠁⠀⠉⣴⠡⡩⡩⢡⣿⡒⣄⣀⣼⡇⠀⠀⠀⠀⠀
⠀⠸⣏⢘⢸⣆⡀⠂⡨⡂⠤⡼⢁⠽⣉⣴⣟⢻⣮⣾⡂⡷⠂⠀⠀⠀⠀⠀
⠀⠀⠹⡮⡍⣙⠧⣑⡀⠊⠀⠃⠁⢖⣡⣶⡿⢯⠽⣖⣖⡄⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠈⢮⡛⠭⣽⣥⠶⠀⡀⠀⢒⢶⣶⣿⡿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠉⠻⣍⡂⡴⡷⠲⠸⢞⠶⡤⣿⢿⡋⠋⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠉⠒⠳⠤⠤⠌⠁⠩⠌⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file moontool-0.2.0.tar.gz
.
File metadata
- Download URL: moontool-0.2.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b249f8c587404e8dc108eb51e13e6a132d163ea53269133a6d89e848bd623a1a |
|
MD5 | deeaceab498e67859d6c5c5dfeff5fff |
|
BLAKE2b-256 | 9cee72758f7a2277aafe6fadf1613c399ace0792a60c6731dd0ac44398d98a4f |
File details
Details for the file moontool-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: moontool-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fef909219832ef01e73c0638bb0ff7b72ebce57b55abc3b19179fe93e5d470c8 |
|
MD5 | 31759ff2a574d741a480e5cd77785476 |
|
BLAKE2b-256 | 207bb5788b61ccc350a548515664df07e59c9768d842cb0844db4071639d1dc1 |