Code Monkey home page Code Monkey logo

node-sgp4's People

Contributors

gitter-badger avatar hacktoberfest-acc avatar joshuaferrara avatar pazrul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-sgp4's Issues

Results not matching with AGI STK

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.