Commit Graph

48 Commits

Author SHA1 Message Date
b612 34ff6a36ae fix: 修正行星事件边界与留点计算
- 统一 UT 事件时刻与 TT 查询时刻的边界判断
- 将外行星留点搜索锚定到对应冲日周期
- 修正水星、金星合日、留、大距事件选择
- 统一七大行星视位置计算辅助逻辑
- 增加公开 Last/Next 边界和 JPL/NAOJ 基线回归测试
v0.1.3
2026-05-22 12:24:41 +08:00
b612 d40c4dfcd9 fix: 兼容 TinyGo wasm 编译行星星历初始化
- 将 planetViews 从包级初始化改为 sync.Once 懒加载,避免 TinyGo interp 在编译期处理大型 float64 表切片索引时触发 unsupported fcmp
- 将行星视图构建失败改为内部返回 error,并由兼容层统一 panic
- 补充无效行星数据切片边界测试
v0.1.2
2026-05-17 21:19:23 +08:00
b612 bec7b8a0d8 feat: 增强日月食搜索、沙罗周期与内行星凌日
- 使用压缩表加速查找日月食沙罗周期信息
- 优化日月食搜索跳步,减少非食季朔望月扫描
- 新增本地日全食、日环食、月全食搜索接口,返回 ok 区分未找到结果
- 新增水星、金星地心凌日查询及测试
v0.1.1
2026-05-03 19:00:08 +08:00
b612 3ffdbe0034 feat: 扩展天文计算能力
- 新增日食、月食、本地可见性、中心线、半影区域、SVG 图示与沙罗周期信息
- 新增行星冲合、留、方照、物理星历、视直径、相位、亮肢角、轨道节点等计算
- 新增木星伽利略卫星位置、现象与接触事件计算
- 新增恒星星表、星座判定、自行修正与观测辅助能力
- 新增 coord、formula、orbit、sundial、lite/sun、lite/moon 等扩展包
- 完善农历年号、月相英文别名、视差角、大气质量、折射、日晷与双星计算
- 增加 NASA、JPL Horizons、IMCCE 等回归测试数据与基线测试
- 重构基础算法文件组织,补充大量公开 API 注释和语义回归测试
- 更新中文和英文 README,补充示例、精度说明、SVG 配图
v0.1.0
2026-05-01 22:38:44 +08:00
b612 98ff574495 bug fix:修正公农历历算问题 v0.0.8 2026-02-20 12:11:38 +08:00
b612 dadbba7171 improve:月升月落算法优化 v0.0.7 2026-02-17 23:23:52 +08:00
b612 add07bbd85 add deltaT func to astro.go 2026-02-16 13:20:22 +08:00
b612 27b7e4ab77 年号异体字修正 2025-11-02 12:01:04 +08:00
b612 0ab91bcd2d fix:修正百年闰年2月29日处理过程 v0.0.6 2025-10-04 17:00:19 +08:00
b612 543abcafa5 更换岁差、章动算法 2025-09-18 13:16:04 +08:00
b612 9f688024e8 1.修正:农历年返回不正确的问题 2025-09-16 11:48:54 +08:00
b612 b865e64fa9 1. 补充农历覆盖到公元前104年
2. 修正年号问题
2025-09-16 00:11:10 +08:00
b612 3389c33cb5 1. 补充农历覆盖到公元前104年
2. 修正时区导致的计算问题
2025-09-15 23:40:09 +08:00
b612 d6b6452304 1. 补充农历覆盖到公元前104年
2. 农历信息中包含君主、年号、朝代
3. 丰富一些算法,修正一些问题
2025-09-15 20:55:38 +08:00
b612 438f1700c7 - fix: Correct sun.TrueBo calculation, now using basic.HSunTrueBo for correct solar latitude
- fix: Rename GetSunDownTime to GetSunSetTime in basic/sun.go and update related calls/outputs
- fix: Update test cases to use new method and error constant names

- improve: Rename all DownTime/Down functions to SetTime/Set for consistency
- improve: Standardize ERR_XXX_NEVER_DOWN error constants to ERR_XXX_NEVER_SET, with ERR_XXX_NEVER_DOWN kept as compatibility alias
- improve: More standard naming for interfaces and errors to improve maintainability and readability
v0.0.5
2025-09-08 10:59:04 +08:00
b612 126cf68cab Merge remote-tracking branch 'origin/master' 2025-09-08 10:40:37 +08:00
b612 4302981518 - fix: Correct sun.TrueBo calculation, now using basic.HSunTrueBo for correct solar latitude
- fix: Rename GetSunDownTime to GetSunSetTime in basic/sun.go and update related calls/outputs
- fix: Update test cases to use new method and error constant names

- improve: Rename all DownTime/Down functions to SetTime/Set for consistency
- improve: Standardize ERR_XXX_NEVER_DOWN error constants to ERR_XXX_NEVER_SET, with ERR_XXX_NEVER_DOWN kept as compatibility alias
- improve: More standard naming for interfaces and errors to improve maintainability and readability
2025-09-08 10:37:46 +08:00
b612 94aeb84da5 update 2025-01-31 15:38:25 +08:00
b612 1952df0c30 update 2025-01-31 15:35:36 +08:00
b612 b0920d327c bug fix:腊月十二显示为正月初一的问题 v0.0.4 2024-12-31 13:52:59 +08:00
b612 616cd54222 fix:时区转换问题 v0.0.3 2024-10-26 21:28:26 +08:00
b612 d479d39352 update v0.0.2 2024-01-16 11:30:53 +08:00
b612 460e042aa9 update rapid lunar calc 2024-01-15 17:05:18 +08:00
b612 c2c79c3615 update moon 2023-12-06 07:58:11 +08:00
b612 2db30bfd92 bug fix:调整梗河一为A星 2023-11-19 16:16:10 +08:00
b612 dbe0fe1229 feature add:修改恒星数据格式 2023-11-19 15:42:51 +08:00
b612 7a317ff1af add star data 2023-11-19 12:05:22 +08:00
b612 6ff76468b4 feature add:允许自定义deltaT 2023-07-23 11:56:05 +08:00
b612 6b97736829 bug fix:解决非东八区的农历计算不正确的问题 2023-07-23 11:47:36 +08:00
b612 ebdcf65c46 月球修正 v0.0.1 2022-05-16 21:21:26 +08:00
b612 97c017be08 change delta T formula and add planet phenomena function 2022-05-16 20:42:15 +08:00
b612 bb07e23238 新增恒星相关计算 2022-05-12 15:55:48 +08:00
b612 7604fabf8f improve rise/down calc 2022-05-10 22:24:10 +08:00
b612 c5f34d3ab8 add star fn 2022-05-06 12:42:01 +08:00
b612 9b50cfff3f bug fix && moon phase date calc 2022-01-05 17:20:55 +08:00
b612 b4b2cea738 添加海拔因素 2022-01-04 14:24:44 +08:00
b612 a225f49209 important bug fix:infinite recursion occurs on constellation calculation 2021-08-13 14:26:08 +08:00
Starainrt a23770a0b6 bug fix 2021-05-23 14:28:29 +08:00
b612 2bd64a5c65 bug fix 2021-03-04 18:44:21 +08:00
b612 407a63502b bug fix:timezone error 2021-03-04 17:27:33 +08:00
b612 a9135de034 bug fix:Chinese calendar display incorrect 2021-03-04 12:25:04 +08:00
b612 8a5313b5dc patch of chinese lunar calc 2020-12-31 12:46:26 +08:00
b612 e1fcc56178 bug fixed 2020-12-31 10:08:00 +08:00
b612 681dea1fb5 use golang timezone 2020-12-31 09:07:54 +08:00
b612 1c4397c9dc 新增函数&修复bug 2020-07-14 15:38:51 +08:00
b612 08fcbf9f89 moon buf fix 2019-11-04 19:18:45 +08:00
b612 11702093ed bug fix 2019-10-29 09:06:54 +08:00
b612 9d047c848a init 2019-10-24 10:44:21 +08:00