feat: 完善时标与天象几何计算并扩展输出接口
- 新增时标、ΔT 模型、质心时间与 UT1 支持 - 改进日月食、月掩、行星事件及路径边界计算 - 完善恒星三维自行与动态距离传播 - 扩展 SVG、GeoJSON、KML 输出与底层距离换算工具 - 整理中英文手册、示例资源及回归测试
This commit is contained in:
@@ -18,7 +18,7 @@ func TestGalileanPhenomenonContactEventWrappersMatchBasic(t *testing.T) {
|
||||
|
||||
got := ClosestGalileanPhenomenonContactEvent(queryMid, record.Satellite, phenomenonType)
|
||||
want := basic.ClosestJupiterGalileanPhenomenonContactEvent(
|
||||
basic.Date2JDE(queryMid.UTC()),
|
||||
basic.Date2JD(queryMid.UTC()),
|
||||
record.Satellite,
|
||||
basic.JupiterGalileanPhenomenonType(phenomenonType),
|
||||
)
|
||||
@@ -43,7 +43,7 @@ func assertGalileanContactWrapperMatchesBasic(
|
||||
if got.Greatest.Location() != loc {
|
||||
t.Fatalf("%s greatest timezone mismatch", name)
|
||||
}
|
||||
wantGreatest := basic.JDE2DateByZone(want.Greatest, loc, false)
|
||||
wantGreatest := basic.JD2DateByZone(want.Greatest, loc, false)
|
||||
if !got.Greatest.Equal(wantGreatest) {
|
||||
t.Fatalf("%s greatest mismatch: got %s want %s", name, got.Greatest.Format(time.RFC3339Nano), wantGreatest.Format(time.RFC3339Nano))
|
||||
}
|
||||
@@ -69,9 +69,9 @@ func assertGalileanContactMatchesBasic(
|
||||
if !got.Valid {
|
||||
return
|
||||
}
|
||||
wantStart := basic.JDE2DateByZone(want.Start, loc, false)
|
||||
wantModel := basic.JDE2DateByZone(want.ModelCrossing, loc, false)
|
||||
wantEnd := basic.JDE2DateByZone(want.End, loc, false)
|
||||
wantStart := basic.JD2DateByZone(want.Start, loc, false)
|
||||
wantModel := basic.JD2DateByZone(want.ModelCrossing, loc, false)
|
||||
wantEnd := basic.JD2DateByZone(want.End, loc, false)
|
||||
if got.Start.Location() != loc || got.ModelCrossing.Location() != loc || got.End.Location() != loc {
|
||||
t.Fatalf("%s timezone mismatch", name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user