Name | moontool JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | John Walker's moontool.c astronomical calculation routines, extracted and ported to Python. |
upload_time | 2024-07-19 22:28:17 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.12 |
license | None |
keywords |
moon
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Moontool
[![license: 0BSD](https://img.shields.io/badge/license-0BSD-blue)](https://opensource.org/license/0BSD)
[![crates.io](https://img.shields.io/crates/d/moontool?logo=rust&logoColor=white&color=orange)](https://crates.io/crates/moontool)
John Walker's moontool.c astronomical calculation routines, extracted.
## Original
The original versions, [moontool](https://www.fourmilab.ch/moontool/)
and [moontoolw](https://www.fourmilab.ch/moontoolw/), are available at
John Walker's [fourmilab.ch](https://www.fourmilab.ch/).
Backup copies are included in the [`original/`](./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
```
<p align="center">
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀<br />
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡠⠤⠀⠠⠀⠀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀<br />
⠀⠀⠀⠀⠀⠀⣠⠶⡥⠤⠖⠢⠴⢭⠭⡖⢔⠦⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀<br />
⠀⠀⠀⠀⠔⠓⢱⣎⣵⠚⠀⠀⠀⠀⠉⢿⣁⣷⣿⠙⢆⠀⠀⠀⠀⠀⠀⠀<br />
⠀⠀⢠⠊⠁⠀⣀⠈⠁⠀⠀⡀⠀⠀⠀⢘⡗⠁⠈⠘⠙⠂⠀⠀⠀⠀⠀⠀<br />
⠀⢠⡋⠀⡄⠁⠀⡢⣀⠰⣀⠂⠀⣀⣠⢉⠄⠀⠀⠀⠑⠀⠀⠀⠀⠀⠀⠀<br />
⠀⣮⣥⠀⠀⢰⣁⣱⢈⡆⢘⣕⠂⠂⠀⠈⠈⡶⠢⠀⠀⠀⠀⠀⠀⠀⠀⠀<br />
⠀⣇⢹⣇⢀⠀⠀⢉⢤⢛⡏⠥⡀⠘⠲⢤⣼⡕⠀⠀⢀⣄⠄⠀⠀⠀⠀⠀<br />
⠈⣿⢿⣳⣮⣀⡀⠳⠌⠀⠻⢠⣼⠷⡎⢩⠉⠔⢠⠀⠾⠿⡅⠀⠀⠀⠀⠀<br />
⠀⣟⡿⠟⣏⠀⠉⢐⠥⠁⠀⠉⣴⠡⡩⡩⢡⣿⡒⣄⣀⣼⡇⠀⠀⠀⠀⠀<br />
⠀⠸⣏⢘⢸⣆⡀⠂⡨⡂⠤⡼⢁⠽⣉⣴⣟⢻⣮⣾⡂⡷⠂⠀⠀⠀⠀⠀<br />
⠀⠀⠹⡮⡍⣙⠧⣑⡀⠊⠀⠃⠁⢖⣡⣶⡿⢯⠽⣖⣖⡄⠀⠀⠀⠀⠀⠀<br />
⠀⠀⠀⠈⢮⡛⠭⣽⣥⠶⠀⡀⠀⢒⢶⣶⣿⡿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀<br />
⠀⠀⠀⠀⠀⠉⠻⣍⡂⡴⡷⠲⠸⢞⠶⡤⣿⢿⡋⠋⠀⠀⠀⠀⠀⠀⠀⠀<br />
⠀⠀⠀⠀⠀⠀⠀⠀⠉⠒⠳⠤⠤⠌⠁⠩⠌⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀<br />
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀<br />
</p>
Raw data
{
"_id": null,
"home_page": null,
"name": "moontool",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "moon",
"author": null,
"author_email": "Quentin Richert <noreply@richert.co>",
"download_url": "https://files.pythonhosted.org/packages/9c/ee/72758f7a2277aafe6fadf1613c399ace0792a60c6731dd0ac44398d98a4f/moontool-0.2.0.tar.gz",
"platform": null,
"description": "# Moontool\n\n[![license: 0BSD](https://img.shields.io/badge/license-0BSD-blue)](https://opensource.org/license/0BSD)\n[![crates.io](https://img.shields.io/crates/d/moontool?logo=rust&logoColor=white&color=orange)](https://crates.io/crates/moontool)\n\nJohn Walker's moontool.c astronomical calculation routines, extracted.\n\n## Original\n\nThe original versions, [moontool](https://www.fourmilab.ch/moontool/)\nand [moontoolw](https://www.fourmilab.ch/moontoolw/), are available at\nJohn Walker's [fourmilab.ch](https://www.fourmilab.ch/).\n\nBackup copies are included in the [`original/`](./original/) directory\nof this repository.\n\n## License\n\nWalker's program is in the public domain, and so is this project.\n\nIn Walker's words:\n\n> Do what thou wilt shall be the whole of the law.\n\n## CLI\n\nThis version includes functions that compute info about the Moon, in a\nway similar to the original program.\n\nThe CLI wraps these functions.\n\n```\n$ moontool 1994-12-22T13:53:34\n\nPhase\n=====\n\nJulian date: 2449709.07887 (0h variant: 2449709.57887)\nUniversal time: Thursday 13:53:34 22 December 1994\nLocal time: Thursday 14:53:34 22 December 1994\n\nAge of moon: 18 days, 22 hours, 29 minutes.\nLunation: 64.13% (\ud83c\udf16 Waning Gibbous)\nMoon phase: 81.56% (0% = New, 100% = Full)\n\nMoon's distance: 386212 kilometres, 60.6 Earth radii.\nMoon subtends: 0.5157 degrees.\n\nSun's distance: 147151251 kilometres, 0.984 astronomical units.\nSun subtends: 0.5420 degrees.\n\nMoon Calendar\n=============\n\nLast new moon: Friday 23:54 UTC 2 December 1994 Lunation: 890\nFirst quarter: Friday 21:06 UTC 9 December 1994\nFull moon: Sunday 2:18 UTC 18 December 1994\nLast quarter: Sunday 19:07 UTC 25 December 1994\nNext new moon: Sunday 10:56 UTC 1 January 1995 Lunation: 891\n```\n\n<p align=\"center\">\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28c0\u2860\u2824\u2800\u2820\u2800\u2800\u2804\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u2800\u2800\u2800\u2800\u28e0\u2836\u2865\u2824\u2816\u2822\u2834\u28ad\u282d\u2856\u2894\u2826\u28e4\u2840\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u2800\u2800\u2814\u2813\u28b1\u28ce\u28f5\u281a\u2800\u2800\u2800\u2800\u2809\u28bf\u28c1\u28f7\u28ff\u2819\u2886\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u28a0\u280a\u2801\u2800\u28c0\u2808\u2801\u2800\u2800\u2840\u2800\u2800\u2800\u2898\u2857\u2801\u2808\u2818\u2819\u2802\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u28a0\u284b\u2800\u2844\u2801\u2800\u2862\u28c0\u2830\u28c0\u2802\u2800\u28c0\u28e0\u2889\u2804\u2800\u2800\u2800\u2811\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u28ee\u28e5\u2800\u2800\u28b0\u28c1\u28f1\u2888\u2846\u2898\u28d5\u2802\u2802\u2800\u2808\u2808\u2876\u2822\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u28c7\u28b9\u28c7\u2880\u2800\u2800\u2889\u28a4\u289b\u284f\u2825\u2840\u2818\u2832\u28a4\u28fc\u2855\u2800\u2800\u2880\u28c4\u2804\u2800\u2800\u2800\u2800\u2800<br />\n\u2808\u28ff\u28bf\u28f3\u28ee\u28c0\u2840\u2833\u280c\u2800\u283b\u28a0\u28fc\u2837\u284e\u28a9\u2809\u2814\u28a0\u2800\u283e\u283f\u2845\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u28df\u287f\u281f\u28cf\u2800\u2809\u2890\u2825\u2801\u2800\u2809\u28f4\u2821\u2869\u2869\u28a1\u28ff\u2852\u28c4\u28c0\u28fc\u2847\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2838\u28cf\u2898\u28b8\u28c6\u2840\u2802\u2868\u2842\u2824\u287c\u2881\u283d\u28c9\u28f4\u28df\u28bb\u28ee\u28fe\u2842\u2877\u2802\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u2839\u286e\u284d\u28d9\u2827\u28d1\u2840\u280a\u2800\u2803\u2801\u2896\u28e1\u28f6\u287f\u28af\u283d\u28d6\u28d6\u2844\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u2800\u2808\u28ae\u285b\u282d\u28fd\u28e5\u2836\u2800\u2840\u2800\u2892\u28b6\u28f6\u28ff\u287f\u28ff\u28ff\u281f\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u2800\u2800\u2800\u2809\u283b\u28cd\u2842\u2874\u2877\u2832\u2838\u289e\u2836\u2864\u28ff\u28bf\u284b\u280b\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2809\u2812\u2833\u2824\u2824\u280c\u2801\u2829\u280c\u2809\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800<br />\n</p>\n",
"bugtrack_url": null,
"license": null,
"summary": "John Walker's moontool.c astronomical calculation routines, extracted and ported to Python.",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/qrichert/moontool"
},
"split_keywords": [
"moon"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "207bb5788b61ccc350a548515664df07e59c9768d842cb0844db4071639d1dc1",
"md5": "31759ff2a574d741a480e5cd77785476",
"sha256": "fef909219832ef01e73c0638bb0ff7b72ebce57b55abc3b19179fe93e5d470c8"
},
"downloads": -1,
"filename": "moontool-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "31759ff2a574d741a480e5cd77785476",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.12",
"size": 11051,
"upload_time": "2024-07-19T22:28:15",
"upload_time_iso_8601": "2024-07-19T22:28:15.785917Z",
"url": "https://files.pythonhosted.org/packages/20/7b/b5788b61ccc350a548515664df07e59c9768d842cb0844db4071639d1dc1/moontool-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9cee72758f7a2277aafe6fadf1613c399ace0792a60c6731dd0ac44398d98a4f",
"md5": "deeaceab498e67859d6c5c5dfeff5fff",
"sha256": "b249f8c587404e8dc108eb51e13e6a132d163ea53269133a6d89e848bd623a1a"
},
"downloads": -1,
"filename": "moontool-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "deeaceab498e67859d6c5c5dfeff5fff",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 15703,
"upload_time": "2024-07-19T22:28:17",
"upload_time_iso_8601": "2024-07-19T22:28:17.077587Z",
"url": "https://files.pythonhosted.org/packages/9c/ee/72758f7a2277aafe6fadf1613c399ace0792a60c6731dd0ac44398d98a4f/moontool-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-19 22:28:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "qrichert",
"github_project": "moontool",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "moontool"
}