You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 年之前
5 年之前
5 年之前
5 年之前
5 年之前
5 年之前
5 年之前
5 年之前
5 年之前
5 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
4 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # ![Kosmorro](assets/png/kosmorro-logo.png)
  2. ![PyPI - Status](https://img.shields.io/pypi/status/kosmorro) ![PyPI](https://img.shields.io/pypi/v/kosmorro)
  3. ## About the project
  4. Kosmorro is a software that allows you to compute the ephemeris for a date, a month or a year.
  5. ## Installation
  6. ### Requirements
  7. Kosmorro requires the following software to work:
  8. - Python ≥ 3.7.0
  9. - PIP
  10. Note: Kosmorro currently only supports Linux operating system. macOS will follow soon. Windows probably.
  11. ### Production environment
  12. #### Linux
  13. ##### Arch Linux, Manjaro…
  14. Kosmorro is available [in the AUR](https://aur.archlinux.org/packages/kosmorro).
  15. ##### Other distributions
  16. Kosmorro is available [on PyPI](https://pypi.org/project/kosmorro/), a repository dedicated to Python.
  17. First, install `python-pip` on your system and invoke the following command: `pip install kosmorro`.
  18. #### Windows, macOS
  19. Kosmorro being at an early-stage development, Windows and macOS are not supported officially for now.
  20. ### Development environment
  21. First, install [Pipenv](https://pypi.org/project/pipenv/).
  22. Clone this repository and run `pipenv sync` to install all the dependencies.
  23. Then, run Kosmorro by invoking `pipenv run python kosmorro`.
  24. For comfort, you may want to invoke `pipenv shell` first and then just `python kosmoro`.
  25. ## Running Kosmorro
  26. ### Usage
  27. ```
  28. kosmorro [-h] [--latitude LATITUDE] [--longitude LONGITUDE]
  29. [--altitude ALTITUDE] [--day DAY] [--month MONTH]
  30. [--year YEAR]
  31. Compute the ephemerides for a given date, at a given position on Earth.
  32. optional arguments:
  33. -h, --help show this help message and exit
  34. --latitude LATITUDE, -lat LATITUDE
  35. The observer's latitude on Earth
  36. --longitude LONGITUDE, -lon LONGITUDE
  37. The observer's longitude on Earth
  38. --altitude ALTITUDE, -alt ALTITUDE
  39. The observer's altitude on Earth
  40. --day DAY, -d DAY A number between 1 and 28, 29, 30 or 31 (depending on
  41. the month). The day you want to compute the
  42. ephemerides for. Defaults to 10 (the current day).
  43. --month MONTH, -m MONTH
  44. A number between 1 and 12. The month you want to
  45. compute the ephemerides for. Defaults to 11 (the
  46. current month).
  47. --year YEAR, -y YEAR The year you want to compute the ephemerides for.
  48. Defaults to 2019 (the current year).
  49. By default, the ephemerides will be computed for today (Sun Nov 10, 2019) for
  50. an observer positioned at coordinates (0,0), with an altitude of 0.
  51. ```
  52. For instance, if you want the ephemeris of October 31th, 2019 in Paris, France:
  53. ```console
  54. $ python kosmorro.py --latitude 48.8032 --longitude 2.3511 -d 11 -m 11 -y 2019
  55. Ephemerides of Sunday November 10, 2019
  56. Planet Rise time Culmination time Set time
  57. -------- ----------- ------------------ ----------
  58. Sun 06:52 11:34 06:52
  59. Moon 16:12 - 05:17
  60. Mercury 06:57 11:36 06:57
  61. Venus 09:00 13:10 09:00
  62. Mars 04:38 10:02 04:38
  63. Jupiter 10:00 14:09 10:00
  64. Saturn 11:25 15:38 11:25
  65. Uranus 15:33 22:35 05:41
  66. Neptune 14:03 19:38 01:16
  67. Pluto 11:46 15:59 11:46
  68. Moon phase: First Quarter
  69. Note: All the hours are given in UTC.
  70. ```