The locationcart() functions for Sun, planets and the Moon don't document their reference frame (e.g. equatorial vs ecliptic). So far I have worked out the planets return equatorial plane Cartesian coords.
In addition they all need to clearly state the origin of the coordinate system (e.g. heliocentric, geocentric or barycentric). So far I have worked out the SUN positions are geocentric, but the planets are heliocentric.
The Date struct is not very clear what julian() is, it should explicitly state it's the Julian Date in units of days.
The Coord struct could also do with some improvements, for example it isn't easy to get Cartesian coordinates in the ecliptic plane which I wanted in my project. It could also do with some functions to convert au coords to metres or kilometres,
The
locationcart()functions for Sun, planets and the Moon don't document their reference frame (e.g. equatorial vs ecliptic). So far I have worked out the planets return equatorial plane Cartesian coords.In addition they all need to clearly state the origin of the coordinate system (e.g. heliocentric, geocentric or barycentric). So far I have worked out the
SUNpositions are geocentric, but the planets are heliocentric.The
Datestruct is not very clear whatjulian()is, it should explicitly state it's the Julian Date in units of days.The
Coordstruct could also do with some improvements, for example it isn't easy to get Cartesian coordinates in the ecliptic plane which I wanted in my project. It could also do with some functions to convert au coords to metres or kilometres,