joshuaferrara / go-satellite

Calculate orbital information of satellites in GoLang.
BSD 2-Clause "Simplified" License
78 stars 27 forks source link

fix ThetaG_JD calculation #2

Closed DanielMorsing closed 5 years ago

DanielMorsing commented 5 years ago

The ThetaG_JD conversion has a step that converts from Julian date to UT1. This involves taking the fractional part of the Julian date. Instead of taking the fractional component, the calculation would be fixed at 0.5.

Fix by using math.Modf

joshuaferrara commented 5 years ago

Awesome, thanks so much for this fix!