You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`lite/sun` / `lite/moon`| Lightweight Sun/Moon approximation chains for minute-level rise/set, lightweight sky position, and lunar-phase work |
65
65
|`eclipse` / `eclipse/svg`| Global/local solar and lunar eclipses, solar central paths, partial footprints, local visibility filtering, Saros metadata, SVG output |
-`SolarEclipseCentralPath`: compute central line, northern/southern limits, and greatest-eclipse point
678
680
-`SolarEclipsePartialFootprints`: compute the partial-eclipse penumbral footprint on Earth
679
681
-`eclipse/svg.LocalSolarEclipseSVG`: render a local solar-disk SVG
@@ -925,6 +927,7 @@ Common entry points:
925
927
-`LastLunarEclipse` / `NextLunarEclipse` / `ClosestLunarEclipse`: search global lunar eclipses
926
928
-`LocalLunarEclipseOnDate`: detect whether a visible lunar eclipse is visible from a site on a local date
927
929
-`LastLocalLunarEclipse` / `NextLocalLunarEclipse` / `ClosestLocalLunarEclipse`: search visible local lunar eclipses
930
+
-`LastLocalTotalLunarEclipse` / `NextLocalTotalLunarEclipse` / `ClosestLocalTotalLunarEclipse`: search visible local total lunar eclipses, returning `(info, ok)`
928
931
-`GeometricLocalLunarEclipseOnDate`: detect geometric lunar eclipse overlap without filtering by whether the Moon is above the horizon
929
932
-`eclipse/svg.LunarEclipseSVG`: render a lunar-eclipse shadow-path SVG
930
933
@@ -1191,6 +1194,67 @@ For `date := 2020-01-01 08:08:08 CST`, the output is:
1191
1194
76.86008484515058 256.8600848451506 // Venus ascending-node and descending-node longitudes, degrees
1192
1195
```
1193
1196
1197
+
Mercury and Venus also expose `NextTransit` / `LastTransit` / `ClosestTransit` for geocentric planetary transits. "Geocentric" means the planet disk crosses the solar disk as seen from Earth's center; it does not test whether the Sun is above the horizon at a particular observing site. For observing plans, combine this with local solar altitude and weather.
1198
+
1199
+
```go
1200
+
package main
1201
+
1202
+
import (
1203
+
"fmt"
1204
+
"time"
1205
+
1206
+
"github.com/starainrt/astro/mercury"
1207
+
"github.com/starainrt/astro/venus"
1208
+
)
1209
+
1210
+
funcmain() {
1211
+
// Next geocentric Mercury transit after the beginning of 2019.
0 commit comments