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 2.8 KiB

4 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
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # ![Kosmorro](assets/png/kosmorro-logo.png)
  2. ## About the project
  3. Kosmorro is a software that allows you to compute the ephemeris for a date, a month or a year.
  4. ## Installation
  5. ### Requirements
  6. To use this software, you will need the following software:
  7. - Python ≥ 3.7.0
  8. - PIP
  9. - [Pipenv](https://pypi.org/project/pipenv/)
  10. Clone this repository and run `pipenv sync` to install all the dependencies.
  11. # Running Kosmorro
  12. Because it's still on an early-development stage, to run Kosmorro, you will need to prefix your commands `pipenv run`.
  13. A `setup.py` file will come later to manage installation in the real world.
  14. ## Usage
  15. ```
  16. kosmorro.py [-h] [--latitude LATITUDE] [--longitude LONGITUDE]
  17. [--altitude ALTITUDE] [--day DAY] [--month MONTH]
  18. [--year YEAR]
  19. Compute the ephemerides for a given date, at a given position on Earth.
  20. optional arguments:
  21. -h, --help show this help message and exit
  22. --latitude LATITUDE, -lat LATITUDE
  23. The observer's latitude on Earth
  24. --longitude LONGITUDE, -lon LONGITUDE
  25. The observer's longitude on Earth
  26. --altitude ALTITUDE, -alt ALTITUDE
  27. The observer's altitude on Earth
  28. --day DAY, -d DAY A number between 1 and 28, 29, 30 or 31 (depending on
  29. the month). The day you want to compute the
  30. ephemerides for. Defaults to 10 (the current day).
  31. --month MONTH, -m MONTH
  32. A number between 1 and 12. The month you want to
  33. compute the ephemerides for. Defaults to 11 (the
  34. current month).
  35. --year YEAR, -y YEAR The year you want to compute the ephemerides for.
  36. Defaults to 2019 (the current year).
  37. By default, the ephemerides will be computed for today (Sun Nov 10, 2019) for
  38. an observer positioned at coordinates (0,0), with an altitude of 0.
  39. ```
  40. For instance, if you want the ephemeris of October 31th, 2019 in Paris, France:
  41. ```console
  42. $ python kosmorro.py --latitude 48.8032 --longitude 2.3511 -d 11 -m 11 -y 2019
  43. Ephemerides of Sunday November 10, 2019
  44. Planet Rise time Culmination time Set time
  45. -------- ----------- ------------------ ----------
  46. Sun 06:52 11:34 06:52
  47. Moon 16:12 - 05:17
  48. Mercury 06:57 11:36 06:57
  49. Venus 09:00 13:10 09:00
  50. Mars 04:38 10:02 04:38
  51. Jupiter 10:00 14:09 10:00
  52. Saturn 11:25 15:38 11:25
  53. Uranus 15:33 22:35 05:41
  54. Neptune 14:03 19:38 01:16
  55. Pluto 11:46 15:59 11:46
  56. Moon phase: First Quarter
  57. Note: All the hours are given in UTC.
  58. ```