使用Javascript语言进行轨道六根数与TLE两行数的转换,有详细的注释解释转换过程,简单易懂。
function TLE2COE(TLE){
let epochYear = Number(TLE.tle1.substr(18,2));
let epochDay = Number(TLE.tle1.substr(20,12));
let epochTime = getEpoch(epochYear,epochDay);
// 倾角
let elementI = Number(TLE.tle2.substr(8,8));
// 升交点赤经
let elementO = Number(TLE.tle2.substr(17,8));
// 偏心率
let elementE = Number('0.' + TLE.tle2.substr(26,7));
// 近地点幅角
let elementW = Number(TLE.tle2.substr(34,8));
……