Friday, March 29, 2013

Google Earth Satellite Tracker - Caching Update

Implementing caching of keplerian elements was reasonably straightforward.  I added two new options within the keps section; 'cache' and 'use_cache'.  The first option specifies if keps should be cached or not.  The second option specifies if cached keps should be used.


Cached keps are stored on disk in a file named after the source.  The files are given a .tle extension.



You will notice a few new runtime messages related to caching.  The image below shows what some of these messages look like when you first run the tool.


If use_cache is enabled and a cache filename is found on disk, the tool will use the cached keps.


Besides creating a cache file on disk and automatically loading it, no other serious changes needed to be made.

No comments: