-
|
First of all, I'd like to thank Brandon Rhodes for the awsome library. Now, regarding the question: At this point, my approach would be:
Nonetheless, as there is a function which does exactly what I need, I wanted to be sure before implementing it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
I just realised that is_sunlit(ephemeris) refers to the ephemeris of the Sun.
Hoping I have not wasted anyone's time. |
Beta Was this translation helpful? Give feedback.
I just realised that is_sunlit(ephemeris) refers to the ephemeris of the Sun.
The following code should return the right answer:
from skyfield.api import EarthSatellite, loadts = load.timescale()satellite = EarthSatellite(line1, line2, name, ts)t = ts.utc(utc_date)eph = load('de421.bsp')sunlit = satellite.at(t).is_sunlit(eph)Hoping I have not wasted anyone's time.