Hello I am translating some python to golang that is used for stuff related to satellites in orbit around the Earth. The python is using pyephem at one point to compute heliocentric longitude.
In particular it’s making this call to pyephem which I’d like to have an equivalent for in golang:
import ephem
import time
solar_longitude = ephem.Sun(time.time()).hlon
hlon is described here: https://rhodesmill.org/pyephem/quick.html#body-compute-date
I found this go package that seems to do a lot of astronomy things but the docs are not very clear to me. Certainly it’s not possible to read the function names and know what they do!
https://pkg.go.dev/github.com/hebl/gofa
Does anyone have experience with gofa? If so do you know if gofa can do the equivalent thing to the python snippet above?