Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ThetaG_JD calculation #2

Merged
merged 1 commit into from
Sep 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func LatLongDeg(rad LatLong) (deg LatLong) {
// Calculate GMST from Julian date.
// Reference: The 1992 Astronomical Almanac, page B6.
func ThetaG_JD(jday float64) (ret float64) {
UT := jday + 0.5 - jday
_, UT := math.Modf(jday + 0.5)
jday = jday - UT
TU := (jday - 2451545.0) / 36525.0
GMST := 24110.54841 + TU*(8640184.812866+TU*(0.093104-TU*6.2e-6))
Expand Down