feat: 完善时标与天象几何计算并扩展输出接口
- 新增时标、ΔT 模型、质心时间与 UT1 支持 - 改进日月食、月掩、行星事件及路径边界计算 - 完善恒星三维自行与动态距离传播 - 扩展 SVG、GeoJSON、KML 输出与底层距离换算工具 - 整理中英文手册、示例资源及回归测试
This commit is contained in:
@@ -56,7 +56,7 @@ func appendSolarHorizonClosedShadowFootprint(
|
||||
regionProperties["source_boundary_closed"] = false
|
||||
regionProperties["geometry_role"] = "horizon-closed-region"
|
||||
regionProperties["closure"] = solarHorizonClosureProperties(
|
||||
footprint.Time, solarHorizonClosureExact(footprint.Boundaries, footprint.HorizonEnds),
|
||||
footprint.Time, footprint.Time, solarHorizonClosureExact(footprint.Boundaries, footprint.HorizonEnds),
|
||||
)
|
||||
regionProperties["interp_signature"] = solarShadowFootprintSignature(
|
||||
footprint.Boundaries, false, eclipsecore.SolarEclipseShadowUmbra,
|
||||
@@ -229,12 +229,13 @@ func solarHorizonClosureExact(
|
||||
}
|
||||
|
||||
// solarHorizonClosureProperties 声明式闭合弧;exact 为假表示缺精确擦地点、按采样端点近似闭合。
|
||||
func solarHorizonClosureProperties(value time.Time, exact bool) map[string]interface{} {
|
||||
subsolar := solarSubsolarPoint(value)
|
||||
// 月下点按几何时刻算,time 属性写输出时标的时刻。
|
||||
func solarHorizonClosureProperties(geometryTime, labelTime time.Time, exact bool) map[string]interface{} {
|
||||
subsolar := solarSubsolarPoint(geometryTime)
|
||||
return map[string]interface{}{
|
||||
"kind": "horizon",
|
||||
"exact": exact,
|
||||
"time": formatTime(value),
|
||||
"time": formatTime(labelTime),
|
||||
"subsolar": []float64{subsolar.Longitude, subsolar.Latitude},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user