DanRW's implementation, from which this is derived, is here: http://www.danrw.com/sgp4-satellite.php
DanRW's SGP4 implementation, but clang- and OS X-friendly.