joshuaferrara / node-sgp4 Goto Github PK
View Code? Open in Web Editor NEWCalculate orbital information of satellites.
License: MIT License
Calculate orbital information of satellites.
License: MIT License
Maybe there is some understanding issue because of which I am not able to generate correct results. Please help me regarding this.
I have compared the results with AGI STK Desktop application. AGI STK Help Page says
By default, STK utilizes the CSSI SGP4 routine, Version 2008-11-03.
Following is the full description of my usage:
TLE Data:
1 20959U 90103A 14044.72615235 .00000027 00000-0 00000+0 0 2724
2 20959 54.3261 214.0472 0115346 348.3774 11.3322 2.00583365170051
ECI Data generated from AGI STK software:
Time (UTCG) x (km) y (km) z (km)
28 Jul 2017 02:55:06.000 -6749.036399 -14064.485321 21282.805742
28 Jul 2017 02:55:07.000 -6745.397433 -14065.853241 21283.102965
28 Jul 2017 02:55:08.000 -6741.758320 -14067.220855 21283.399727
28 Jul 2017 02:55:09.000 -6738.119061 -14068.588164 21283.696028
28 Jul 2017 02:55:10.000 -6734.479656 -14069.955168 21283.991866
28 Jul 2017 02:55:11.000 -6730.840105 -14071.321867 21284.287243
28 Jul 2017 02:55:12.000 -6727.200408 -14072.688260 21284.582158
28 Jul 2017 02:55:13.000 -6723.560565 -14074.054349 21284.876612
28 Jul 2017 02:55:14.000 -6719.920576 -14075.420132 21285.170603
28 Jul 2017 02:55:15.000 -6716.280441 -14076.785610 21285.464134
My Code( using sgp4.js):
updateEntityToCurrentSimTime: function (time) {
var date = new Date( "07/28/2017 08:25:05");
var tleLines = ["1 20959U 90103A 14044.72615235 .00000027 00000-0 00000+0 0 2724",
"2 20959 54.3261 214.0472 0115346 348.3774 11.3322 2.00583365170051"];
var satrec = satellite.twoline2rv(tleLines[0], tleLines[1], SGP4.wgs84());
//update current date
date.setSeconds(date.getSeconds() + time);
var posAndVelECI = SGP4.propogate(satrec,
date.getUTCFullYear(),
date.getUTCMonth() + 1,
date.getUTCDate(),
date.getUTCHours(),
date.getUTCMinutes(),
date.getUTCSeconds());
}
ECI data from my code(using node-SGP4):
28 Jul 2017 02:55:06 GMT 0 -6729.5866812930935 -14090.192704493445 21271.96936623743
28 Jul 2017 02:55:07 GMT 0 -6725.942904316203 -14091.546319840401 21272.272757457344
28 Jul 2017 02:55:08 GMT 0 -6722.298834777502 -14092.899684035756 21272.57569941536
28 Jul 2017 02:55:09 GMT 0 -6718.654766124882 -14094.252688097997 21272.87816771835
28 Jul 2017 02:55:10 GMT 0 -6715.010551711341 -14095.605386498912 21273.180174569126
28 Jul 2017 02:55:11 GMT 0 -6711.366191662035 -14096.9577791936 21273.481719959367
28 Jul 2017 02:55:12 GMT 0 -6707.721686056604 -14098.309866154083 21273.782803884547
28 Jul 2017 02:55:13 GMT 0 -6704.077034974807 -14099.661647352345 21274.083426340152
28 Jul 2017 02:55:14 GMT 0 -6700.432238496194 -14101.013122760449 21274.38358732169
28 Jul 2017 02:55:15 GMT 0 -6696.787150063399 -14102.36434670113 21274.683298872133
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.