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.2 KiB

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