Files
astro/earth/earth.go
T

17 lines
446 B
Go
Raw Permalink Normal View History

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 {
jde := basic.Date2JDE(date.UTC())
2019-10-24 10:44:21 +08:00
return basic.Earthe(basic.TD2UT(jde, true))
}