1.0.1 • Published 10 years ago
tle-parser v1.0.1
tle-parser
Two-line Element Set (TLE) parser library
Installation
npm install tle-parserAPI
Module import
As a ES2015+ module
import parser from 'tle-parser'As a CommonJS module (≤ES5)
var parser = require('tle-parser').parserparser
Parses a TLE and returns a human readable object of the orbital elements. (Two and three line TLEs are supported)
Parameters
tlestring 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
namestring Name of the objectintl_designatorstring International Designator (YYYY-NNNAAA)catalog_numberstring Satellite Catalog Number (NNNNN)classification_typestring Classification Typeepochstring Epoch as an ISO8601/RFC3339 style dateinclinationnumber Inclination degreeseccentricitynumber Eccentricityright_ascensionnumber Right Ascension of the Ascending Node degreesargument_of_periapsisnumber Argument of Perigee degreesmean_anomalynumber Mean Anomaly degreesmean_motionnumber Mean Motion revolutions * day^-1mean_motion_dotnumber First time derivative of the Mean Motion (already multiplied by 2) revolutions * day^-2mean_motion_dot_dotnumber Second time derivative of the Mean Motion (already multiplied by 6) revolutions * day^-3b_starnumber B* drag term earthRadii^-1revolutions_at_epochnumber Revolution Number at Epochelement_set_numbernumber Element Set Numberephemeris_typenumber Element Set Type
CLI
npm install -g tle-parser
tle2json -o elements.json file-with.tle