-
Notifications
You must be signed in to change notification settings - Fork 424
Strange solar azimuth/altitudes near and below equator #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If it helps troubleshoot, SunCalc reports that the |
Okay my graphs may be off due to sorting points by azimuth before plotting, but the strange azimuth at solar noon is still a concern. In the southern hemisphere it seems to be fixed by removing the fix mentioned in #6. I don't fully understand the math, but I believe π should only be added when evaluating solar positions in the northern hemisphere. @mourner does this sound possible? |
Sorry for the moment of panic. I didn't know to expect the The solar plots I was comparing my results to use a I hope this can help someone else out in the future! |
I've been building an application for graphing the sun position throughout the day by taking az/alt samples at intervals before and after solar noon. This has worked brilliantly for most places on the globe, but doesn't behave correctly near and below the equator.
By my rough checks the times solarcalc provides at these lat/longs for solar noon/rise/set seem correct, but the altitudes and azimuths definitely aren't. In a lot of cases the graph ends up looking upside-down, or asymptotic.
Before I dive in myself I wanted to check if the experts here had an inkling of what might be going on!
Quito, Equador (0.233, 78.517)
Expected
Actual
Sydney, Australia (–33.868, 151.206)
Expected
Actual
McMurdo Station, Antartica (–77.850, 166.667)
Expected
Actual
The text was updated successfully, but these errors were encountered: