Two-line Element Set (TLE) parser library
npm install tle-parser
As a ES2015+ module
import parser from 'tle-parser'
As a CommonJS module (≤ES5)
var parser = require('tle-parser').parser
Parses a TLE and returns a human readable object of the orbital elements. (Two and three line TLEs are supported)
Parameters
-
tle
string The TLE as a string (with line breaks etc.)
Returns Elements Object containing the TLEs orbital elements.
Examples
import parser from 'tle-parser'
const tle = `0 ISS (ZARYA)
1 25544U 98067A 15310.90801927 .00009031 00000-0 13975-3 0 9997
2 25544 51.6440 91.7795 0006748 114.3849 28.9641 15.54854844970245`
const elements = parser(tle)
Properties
-
name
string Name of the object -
intl_designator
string International Designator (YYYY-NNNAAA) -
catalog_number
string Satellite Catalog Number (NNNNN) -
classification_type
string Classification Type -
epoch
string Epoch as an ISO8601/RFC3339 style date -
inclination
number Inclination [degrees] -
eccentricity
number Eccentricity -
right_ascension
number Right Ascension of the Ascending Node [degrees] -
argument_of_periapsis
number Argument of Perigee [degrees] -
mean_anomaly
number Mean Anomaly [degrees] -
mean_motion
number Mean Motion [revolutions * day^-1] -
mean_motion_dot
number First time derivative of the Mean Motion (already multiplied by 2) [revolutions * day^-2] -
mean_motion_dot_dot
number Second time derivative of the Mean Motion (already multiplied by 6) [revolutions * day^-3] -
b_star
number B* drag term [earthRadii^-1] -
revolutions_at_epoch
number Revolution Number at Epoch -
element_set_number
number Element Set Number -
ephemeris_type
number Element Set Type
npm install -g tle-parser
tle2json -o elements.json file-with.tle