CNGARIES - Calculate GHA of the first point of Aries
Description: Calculate GHA of the first point of Aries for a given time and day of the year.
Inputs:
| Year | Year |
| Month | Month of the year |
| Day | Day of the month |
| Hour | UT hour of interest |
| Minute | UT minute of interest |
| Second | UT second of interest |
Outputs:
| GHA Aries | The calculated GHA |
Sample execution:
Year? 2025 Month(1-12)? 9 Day(1-31)? 29 Hour(0-23)? 13 Minute? 30 Second? 0 GHA Aries: 211° 03.9'
(For explanation of notation, conventions etc, see python-programs).
Copyright (C) 2024 Ian Staniforth
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
https://www.gnu.org/licenses/.
# CNGARIES - Calculate GHA Aries for a given date and time
from math import *
from CN_LIB import *
year = int(input("Year? "))
month = int(input("Month(1-12)? "))
day = int(input("Day(1-31)? "))
hour = stot("Hour(0-23)? ")
minute = stot("Minute? ")
second = stot("Second? ")
ut = hour+minute/60+second/3600
day = day+ut/24
# Astronomical Algorithms calculation
gha = ghaaries(year,month,day) # see CN_LIB
print("")
print("GHA Aries: "+dtos(gha))