Closed stefanengel closed 3 years ago
Hi. Thanks for the report, that's strange indeed. If I read well your message, the origin of the problem seems to lie in the JulianDay computation. Mine are well covered with tests, but who knows, I may have missed something.
Can you provide here a date and the corresponding JulianDays with SKySafari and SwiftAA ? We will compare with a third souce...
I reproduce your problem with SkySafari. Here are screenshots (sorry in French):
First show date, as in your code. JulianDay seems correct. It is also what we can obtain with SwiftAA:
Second shot shows site: Rehberg Tower
Last shows 3 Sagittarii infos. And rise, transit, set times are off.
"Se lève" = "rises": 7:34 PM, instead of 6:30 PM "Passe" = "transits": 10:04 PM, instead of 11:07 PM "Se couche" = "sets": 2:45 AM, instead of 01:37 AM (??)
But I just noticed that if you specify UT Offset for Rehberg Tower of one (1) hour instead of 2 (which usually accounts for summer time offset) inside SkySafari, you get correct values!
Rises: 6:34, Transits: 10:07 Sets: 01:45
That is, in SkySafari, the UT offset provided must be a purely geometric one, not something accounting already for summer offset.
In conclusion I would say, your setup of Rehberg Tower is wrong by one hour. Could you confirm ? (or not) :-D
Hi,
thank you for the hint. You are completely right, my location setup was messed up by one hour 🙈 I fixed the locations and now everything is fine, SwiftAA calculates the correct rise/transit/set times. I apologize for wasting your time, this issue can be closed :)
Hi there,
thanks again for providing the api that calculates rise and set times for stars. I played around with it a little bit and compared the results to SkySafari. Of course the minutes do not exactly match since there might be small differences between the equatorial coordinates and the geographic coordinates in my code and in SkySafari, so that is fine. The strange thing is that all times seem to be off by one hour.
I picked two different locations and calculated rise/transit/set times for 3 Sagittarii on August the 24th, 2020. I am currently in UTC+2 so I created a DateFormatter with my current timezone and locale to get compareable results to SkySafari.
Here is my code:
Here is the output:
And here are the results from SkySafari:
Rehberg Tower Rise: 5:29 PM Transit: 09:02 PM Set: 12:40 AM
Hörnum Beach Rise: 6:08 PM Transit: 9:01 PM Set: 11:54 PM
At first I thought that it was some kind of local date conversion problem so I looked at the results as JulianDay and they were off by one hour as well. Is this a bug or did I miss something that must be done before calling riseTransitSetTimes?