Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objective-C Astronomy Library

I need to do some moonrise azimuth and time calculations. Can anyone recommend a good astronomy library, preferably in Objective-C?

like image 504
Richard Milewski Avatar asked Feb 27 '10 18:02

Richard Milewski


5 Answers

I recommend PJ Naughter's AA+ library. It is based on the Astronomical Algorithms book by Meeus. The library is quite comprehensive and written in C++ (easily called from Objective-C). My iOS app Lúan uses this library.

like image 66
Andrew Hammond Avatar answered Nov 01 '22 09:11

Andrew Hammond


Maybe code of opensource projects could fit you? Recently on FLOSS-Weekly was a discussion about Stellarium.

Disclaimer: I didn't look at that source of Stellarium so I have no idea if it is useful at all and unfortunately it is written in C/C++.

like image 23
Eugeniu Torica Avatar answered Nov 01 '22 09:11

Eugeniu Torica


Its not in objective C but the library included in the pyephem package is quite good. The C source files were taken from the old X windows xephem program with glue added to make the functions available from within Python. As long as you don't require super-high accuracy, these routines will probably work for you.

http://rhodesmill.org/pyephem/

like image 39
sizzzzlerz Avatar answered Nov 01 '22 07:11

sizzzzlerz


For those still interested in 2016, I've made an Objective-C(++) and Swift wrapper around PJ Naughter's AA+ library. It is based on the Astronomical Algorithms book by Jean Meeus and it is open-source on GitHub:

https://github.com/onekiloparsec/SwiftAA

like image 2
onekiloparsec Avatar answered Nov 01 '22 08:11

onekiloparsec


There's an old C library called Astrolog that can probably do some of the stuff you're asking. You can check it out here: http://www.astrolog.org/astrolog.htm

like image 1
Dave DeLong Avatar answered Nov 01 '22 08:11

Dave DeLong