Giter VIP home page Giter VIP logo

Comments (7)

thkruz avatar thkruz commented on June 26, 2024 3

jspredict looks very handy, but it still relies on looping through at a specified interval.

What I have done to increase performance is throw a binary flag each iteration if the object is in view and if it is false, then check if it was true last iteration (determine if the object just left field of view).

If the object has just left field of view, I skip a number of iterations equal to 3/4th the period of the object (no way it is in view on the other side of the earth).

Example:

At 1200z the ISS comes into field of view. I check at 1201z, 1202z, 1203z and 1204z and it is still in view. At 1205z it is out of view, so instead of adding 60s, I add ~67 minutes (75% of its 90 minute orbital period) and then continue iterating at 60s intervals.

Since I often want 1s intervals this can save me hundreds of thousands of iterations.

from satellite-js.

christianreyes avatar christianreyes commented on June 26, 2024 2

I use this: https://github.com/nsat/jspredict

from satellite-js.

shashwatak avatar shashwatak commented on June 26, 2024

I do not have a helper function that does that, but if you would like to make a pull request to include something useful like that (or other useful helper utilities you might have), I'd be happy to look over them and see if I can include them :)

from satellite-js.

fpfaffendorf avatar fpfaffendorf commented on June 26, 2024

@laptopdude90 I'm facing the same challenge. Did you find or develop a better way ?

from satellite-js.

 avatar commented on June 26, 2024

@fpfaffendorf No, but I came up with an idea in theory:

Get the angle for two times, far apart, but less than an orbit period. I have a feeling they follow a sinusoidal trend (Not tested) so you could use that to narrow it down a lot, and then find the exact values and verify.

from satellite-js.

fpfaffendorf avatar fpfaffendorf commented on June 26, 2024

@laptopdude90 Thanks for your response. That's an interesting idea that might save some CPU. Specially for LEO satellites.
I think that most satellite prediction software use different formulas to find the rise, transit and set times of a satellite instead of running the math for each instant. I've done that in the past for solar system objects and again, there were formulas. It wasn't necessary to loop.
Best,

from satellite-js.

thkruz avatar thkruz commented on June 26, 2024

This can probably be closed.

from satellite-js.

Related Issues (20)

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.