anoved / Ground-Track-Generator

Save satellite ground tracks generated from TLE orbit info as GIS-compatible shapefiles.
http://anoved.net/2012/03/making-gtg/
MIT License
28 stars 10 forks source link

libsgp4 DateTime constructor second/microsecond issues #9

Closed anoved closed 11 years ago

anoved commented 11 years ago

Originally, libsgp4's Julian class constructor accepted a single timestamp value n, interpreted as time_t seconds.

Now, the equivalent DateTime class constructor accepts a single timestamp value n, which is interpreted as ticks (microseconds)!

This form of the constructor is used, for instance, when parsing --start or --end timestamps. Values previously specified as seconds are now interpreted as microseconds, resulting in incorrect time spans and various related errors.