2019-10-24 10:44:21 +08:00
|
|
|
package earth
|
|
|
|
|
|
|
|
|
|
import (
|
2020-07-14 15:38:51 +08:00
|
|
|
"time"
|
|
|
|
|
|
2019-10-24 10:44:21 +08:00
|
|
|
"b612.me/astro/basic"
|
|
|
|
|
)
|
|
|
|
|
|
2026-05-01 22:38:44 +08:00
|
|
|
// EarthEccentricity 地球轨道偏心率 / orbital eccentricity of Earth.
|
|
|
|
|
//
|
|
|
|
|
// 返回 date 对应绝对时刻的地球轨道偏心率,无量纲。
|
|
|
|
|
// Returns Earth's orbital eccentricity at the instant represented by date; the value is dimensionless.
|
2020-07-14 15:38:51 +08:00
|
|
|
func EarthEccentricity(date time.Time) float64 {
|
2026-09-23 18:55:12 +08:00
|
|
|
jd := basic.Date2JD(date.UTC())
|
|
|
|
|
return basic.Earthe(basic.UTC2TT(jd))
|
2019-10-24 10:44:21 +08:00
|
|
|
}
|