TLE module
TLE.loadTLE
- *Load a TLE and returns array objects for a specific satellite :
TLE.loadTLE(path)
{
'name': string, Name,
'norad_number' : Norad ID,
'L1': string, TLE line 1,
'L2': string, TLE line 2,
'epoch': date
}
Path can be a URL. Adding http or https will request the SDRVM to download the file from a remote host before processing it.
- Loading from Internet:
var satlist =TLE.loadTLE('https://www.celestrak.com/NORAD/elements/amateur.txt' ) ;
print('We have loaded ' + satlist.length + ' sat definitions.');
- Loading from local storage:
var satlist = TLE.loadTLE('/tmp/amateur.txt') ;`
print('We have loaded ' + satlist.length + ' sat definitions.');
- Define TLE manually in the code:
var TLE = new Satellite('ISS');
var loaded = TLE.setTLE(
'1 25544U 98067A 20262.17917074 .00000067 00000-0 93590-5 0 9992',
'2 25544 51.6432 248.2943 0000854 102.9022 344.0032 15.48951196246432'
);
if( !loaded ) {
print('error loading TLE for ISS ?');
exit();
}
Last update: February 14, 2022