feat: 完善时标与天象几何计算并扩展输出接口

- 新增时标、ΔT 模型、质心时间与 UT1 支持
- 改进日月食、月掩、行星事件及路径边界计算
- 完善恒星三维自行与动态距离传播
- 扩展 SVG、GeoJSON、KML 输出与底层距离换算工具
- 整理中英文手册、示例资源及回归测试
This commit is contained in:
2026-09-23 18:55:12 +08:00
parent 1f31a9b5b5
commit 16c62a97d5
503 changed files with 33290 additions and 9471 deletions
+4 -4
View File
@@ -8,7 +8,7 @@ import (
// 本切片(行星/月球事件层)的性能守护基准;改动热路径时必须给出改前→改后。
func BenchmarkPlanetEventGreatestElongationAnySide(b *testing.B) {
jd := JDECalc(2025, 3, 1)
jd := JDCalc(2025, 3, 1)
b.Run("Mercury", func(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = NextMercuryGreatestElongation(jd)
@@ -41,7 +41,7 @@ func BenchmarkPlanetEventOuterStationNonFiniteQuery(b *testing.B) {
}
func BenchmarkPlanetEventMoonMaximumDeclination(b *testing.B) {
jd := JDECalc(2025, 3, 1)
jd := JDCalc(2025, 3, 1)
b.Run("Next", func(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = NextMoonMaximumNorthDeclination(jd)
@@ -77,7 +77,7 @@ func BenchmarkPlanetEventJupiterGalileanCallisto(b *testing.B) {
}
func BenchmarkPlanetEventJupiterSixEventsSameInstant(b *testing.B) {
jd := JDECalc(2025, 3, 1)
jd := JDCalc(2025, 3, 1)
for i := 0; i < b.N; i++ {
_ = NextJupiterConjunction(jd)
_ = NextJupiterOpposition(jd)
@@ -98,7 +98,7 @@ func BenchmarkPlanetEventLunarEclipseDiagram(b *testing.B) {
// 差分对照基准:改动前“两侧都算再取极值”的聚合方式。
func BenchmarkPlanetEventGreatestElongationBothSidesReference(b *testing.B) {
mercuryJD, venusJD := JDECalc(2025, 3, 1), JDECalc(2025, 3, 1)
mercuryJD, venusJD := JDCalc(2025, 3, 1), JDCalc(2025, 3, 1)
b.Run("Mercury", func(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = earliestFiniteEventUT(NextMercuryGreatestElongationEast(mercuryJD), NextMercuryGreatestElongationWest(mercuryJD))