Open johndpope opened 6 years ago
Hi. I replied in the SwiftAA associated issue, but SwiftAA does this out of the box (and much more).
As for the RA/Dec conversion into Alt/Az check the makeHorizontalCoordinates
method of the EquatorialCoordinates
class.
Astronomy coordinate conversion. Conversion among equatorial coordinate (right ascension and declination), horizontal coordinate (azimuth and altitude) and their corresponding Cartesian equivalents Calculate Julian Date and Local sidereal time. Matrix / Quaternion transformation from celestial coordinate system to local tangent plane. Supports North-East-Down coordinate from earth-centered, earth-fixed coordinate system for any given longitude, latitude and timestamp.
@DJBen - has created this project - which successfully does all this. I wonder if swiftAA can't do this out of the box? https://github.com/DJBen/SpaceTime