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.

README.md 3.4 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/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. If you are an end-user, you will prefer running Kosmorro as any other software on your machine.
  13. Install Kosmorro through PIP: `pip install kosmorro`. This will download and configure the last version of Kosmorro.
  14. You will then be able to run it by invoking `kosmorro` in your terminal!
  15. ### Development environment
  16. First, install [Pipenv](https://pypi.org/project/pipenv/).
  17. Clone this repository and run `pipenv sync` to install all the dependencies.
  18. Then, run Kosmorro by invoking `pipenv run python kosmorro`.
  19. For comfort, you may want to invoke `pipenv shell` first and then just `python kosmoro`.
  20. ## Running Kosmorro
  21. ### Usage
  22. ```
  23. kosmorro.py [-h] [--latitude LATITUDE] [--longitude LONGITUDE]
  24. [--altitude ALTITUDE] [--day DAY] [--month MONTH]
  25. [--year YEAR]
  26. Compute the ephemerides for a given date, at a given position on Earth.
  27. optional arguments:
  28. -h, --help show this help message and exit
  29. --latitude LATITUDE, -lat LATITUDE
  30. The observer's latitude on Earth
  31. --longitude LONGITUDE, -lon LONGITUDE
  32. The observer's longitude on Earth
  33. --altitude ALTITUDE, -alt ALTITUDE
  34. The observer's altitude on Earth
  35. --day DAY, -d DAY A number between 1 and 28, 29, 30 or 31 (depending on
  36. the month). The day you want to compute the
  37. ephemerides for. Defaults to 10 (the current day).
  38. --month MONTH, -m MONTH
  39. A number between 1 and 12. The month you want to
  40. compute the ephemerides for. Defaults to 11 (the
  41. current month).
  42. --year YEAR, -y YEAR The year you want to compute the ephemerides for.
  43. Defaults to 2019 (the current year).
  44. By default, the ephemerides will be computed for today (Sun Nov 10, 2019) for
  45. an observer positioned at coordinates (0,0), with an altitude of 0.
  46. ```
  47. For instance, if you want the ephemeris of October 31th, 2019 in Paris, France:
  48. ```console
  49. $ python kosmorro.py --latitude 48.8032 --longitude 2.3511 -d 11 -m 11 -y 2019
  50. Ephemerides of Sunday November 10, 2019
  51. Planet Rise time Culmination time Set time
  52. -------- ----------- ------------------ ----------
  53. Sun 06:52 11:34 06:52
  54. Moon 16:12 - 05:17
  55. Mercury 06:57 11:36 06:57
  56. Venus 09:00 13:10 09:00
  57. Mars 04:38 10:02 04:38
  58. Jupiter 10:00 14:09 10:00
  59. Saturn 11:25 15:38 11:25
  60. Uranus 15:33 22:35 05:41
  61. Neptune 14:03 19:38 01:16
  62. Pluto 11:46 15:59 11:46
  63. Moon phase: First Quarter
  64. Note: All the hours are given in UTC.
  65. ```