2026-05-01 22:38:44 +08:00
|
|
|
package neptune
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"b612.me/astro/basic"
|
|
|
|
|
"b612.me/astro/calendar"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Semidiameter 海王星视半径,单位角秒 / apparent Neptune semidiameter in arcseconds.
|
2026-10-15 23:54:15 +08:00
|
|
|
func (module *Neptune) 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 Neptune semidiameter in arcseconds.
|
|
|
|
|
func (module *Neptune) 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.NeptuneSemidiameterNWithInstance(basic.UTC2TT(jd), n, module.inst)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Diameter 海王星视直径,单位角秒 / apparent Neptune diameter in arcseconds.
|
2026-10-15 23:54:15 +08:00
|
|
|
func (module *Neptune) 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 Neptune diameter in arcseconds.
|
|
|
|
|
func (module *Neptune) 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.NeptuneDiameterNWithInstance(basic.UTC2TT(jd), n, module.inst)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|