Earth coordinate at Sun Zenith & Day Night Boundary #602
Replies: 2 comments 6 replies
-
This question nerd-sniped me pretty good, haha. Here is a script I wrote that I believe does what you need. The sun subpoint is quite easy to calculate since Skyfield has a feature for calculating subpoints. Finding points on the terminator required some custom vector math. I tried to be liberal with comments, but if you have questions about how it works let me know.
|
Beta Was this translation helpful? Give feedback.
-
@JoshPaterson Hi Josh, It has been a while since I took a look at this code. I don't know if your are still around and interested. This code is close to correct at the summer and winter solstice, but not any other time. I think the rotation of the earth's axis is not being taken into consideration some how. If you are still around, do you think this problem could be solved. If I can get it working correctly, then I will add a day-night, twilight algorithm into QGIS. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Can Skyfield be used to find the coordinate where the sun is at its zenith for a particular date and time? The second part of this question is can it be used to calculate the day/night terminator coordinates (lat, lon) so that I can produce a polygon of the night area in QGIS. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions