1.0.1 • Published 8 years ago
tle-parser v1.0.1
tle-parser
Two-line Element Set (TLE) parser library
Installation
npm install tle-parser
API
Module import
As a ES2015+ module
import parser from 'tle-parser'
As a CommonJS module (≤ES5)
var parser = require('tle-parser').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)
Elements
Properties
name
string Name of the objectintl_designator
string International Designator (YYYY-NNNAAA)catalog_number
string Satellite Catalog Number (NNNNN)classification_type
string Classification Typeepoch
string Epoch as an ISO8601/RFC3339 style dateinclination
number Inclination degreeseccentricity
number Eccentricityright_ascension
number Right Ascension of the Ascending Node degreesargument_of_periapsis
number Argument of Perigee degreesmean_anomaly
number Mean Anomaly degreesmean_motion
number Mean Motion revolutions * day^-1mean_motion_dot
number First time derivative of the Mean Motion (already multiplied by 2) revolutions * day^-2mean_motion_dot_dot
number Second time derivative of the Mean Motion (already multiplied by 6) revolutions * day^-3b_star
number B* drag term earthRadii^-1revolutions_at_epoch
number Revolution Number at Epochelement_set_number
number Element Set Numberephemeris_type
number Element Set Type
CLI
npm install -g tle-parser
tle2json -o elements.json file-with.tle