Skip to content

Commit

Permalink
Merge pull request #2 from DanielMorsing/fix_thetaG
Browse files Browse the repository at this point in the history
fix ThetaG_JD calculation
  • Loading branch information
joshuaferrara authored Sep 24, 2018
2 parents 6c27b07 + 1794d55 commit c477597
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit c477597

Please sign in to comment.