A two-line element set (TLE) is a data format used to convey sets of orbital elements that describe the orbits of Earth-orbiting satellites. A computer program called a model can use the TLE to compute the position of a satellite at a particular time. The TLE is a format specified by NORAD and used by NORAD and NASA. The TLE can be used directly by the SGP4 model (or one of the SGP8, SDP4, SDP8 models). Orbital elements are determined for many thousands of space objects by NORAD and are freely distributed on the Internet in the form of TLEs. A TLE consists of a title line followed by two lines of formatted text.
var parser = new TLE.Parser( options ) // ORvar parser = TLE.createParser( options )
fs.createReadStream( FILEPATH ) .pipe( new TLE.Parser() ) .on( 'data', function( tle ) { // ... })
Creating a TLE instance from existing data
// From a JSON stringvar tle = TLE.fromJSON( '{"name":"ISS (ZARYA)","number":25544,"class":"U","id":"98067A","date":"2008-09-20T12:25:40.104Z","fdmm":-0.00002182,"sdmm":0,"drag":-0.000011606,"ephemeris":0,"esn":292,"inclination":51.6416,"ascension":247.4627,"eccentricity":0.0006703,"perigee":130.536,"anomaly":325.0288,"motion":15.72125391,"revolution":56353}' )
// From an objectvar tle = TLE.fromJSON({ name: 'FENGYUN 1C DEB', class: 'U', id: '29740',})
Speed
It can read, stream & parse ~2500 TLEs from the file system in about 100ms.