2026-05-01 22:38:44 +08:00
|
|
|
package venus
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"b612.me/astro/basic"
|
|
|
|
|
"b612.me/astro/calendar"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Semidiameter 金星视半径,单位角秒 / apparent Venus semidiameter in arcseconds.
|
2026-10-15 23:54:15 +08:00
|
|
|
func (module *Venus) Semidiameter(date time.Time) float64 {
|
|
|
|
|
return module.SemidiameterN(date, -1)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|
|
|
|
|
|
2026-10-15 23:54:15 +08:00
|
|
|
// SemidiameterN 金星视半径(n 变体),单位角秒 / n-parameterised apparent Venus semidiameter in arcseconds.
|
|
|
|
|
func (module *Venus) SemidiameterN(date time.Time, n int) float64 {
|
2026-09-23 18:55:12 +08:00
|
|
|
jd := calendar.Date2JD(date.UTC())
|
2026-10-15 23:54:15 +08:00
|
|
|
return basic.VenusSemidiameterNWithInstance(basic.UTC2TT(jd), n, module.inst)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Diameter 金星视直径,单位角秒 / apparent Venus diameter in arcseconds.
|
2026-10-15 23:54:15 +08:00
|
|
|
func (module *Venus) Diameter(date time.Time) float64 {
|
|
|
|
|
return module.DiameterN(date, -1)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|
|
|
|
|
|
2026-10-15 23:54:15 +08:00
|
|
|
// DiameterN 金星视直径(n 变体),单位角秒 / n-parameterised apparent Venus diameter in arcseconds.
|
|
|
|
|
func (module *Venus) DiameterN(date time.Time, n int) float64 {
|
2026-09-23 18:55:12 +08:00
|
|
|
jd := calendar.Date2JD(date.UTC())
|
2026-10-15 23:54:15 +08:00
|
|
|
return basic.VenusDiameterNWithInstance(basic.UTC2TT(jd), n, module.inst)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|