Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few minutes difference compared with passes predictions from Heavens-above.com #2

Open
edetoc opened this issue Oct 9, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@edetoc
Copy link

edetoc commented Oct 9, 2022

Nice App, Congratulations !

I am also using OneSgp4 library in my app and I'm considering adding passes predictions. I can see you have this in your app:

private void btnCalc_Click(object sender, EventArgs e)

I just tried to compare the predictions obtained with your app with what I get from Heavens-above.com (for Paris). for each pass I can see a few minutes difference. I have underlined some of them in the screenshot below (on the left is heavens-above.com, your app is on the right). Have you noticed that too ?

image

thanks !

@JKamue
Copy link
Owner

JKamue commented Oct 11, 2022

Hey, thanks for reaching out and letting me know!

I was able to reproduce this behaviour, seems like it consistenly is off by a few minutes and also has the incorrect Azimuth and Elevation data. (Time on the right side is UTC)

Screenshot 2022-10-11 100055

This is weird since I am pretty sure that I cross compared with N2YO and other pages a lot when I initially wrote the program. But it is possible that I introduced an error somewhere that accumulated over time. According to the library used the error should not be larger than 1KM:

The SGP4 implementation is accurate in the KM range meaning the calculated position of an object can be off by around 1 km

https://github.com/1manprojects/one_Sgp4/blob/master/README.md#accuracy

I would assume that this is an error introduced by me and not the library and that you can safely implement the pass prediciton in your program. But I would have to do some further digging into it to confirm this suspicion and hopefully fix my bug as well.

Sadly I have a lot of other projects going on at the time. I am not sure when I will get around to fixing this.

@JKamue JKamue added the bug Something isn't working label Oct 11, 2022
@edetoc
Copy link
Author

edetoc commented Oct 11, 2022

Thanks a lot for your response. I did some more experimentation on my side. I wrote a simple app that is calling :

List passes = One_Sgp4.SatFunctions.CalculatePasses(observer, tleISS, new EpochTime(DateTime.Today), 1, 3, Sgp4.wgsConstant.WGS_84);

observer coordinates in below screenshot is the Eiffel tower:
One_Sgp4.Coordinate observer = new Coordinate(48.8583, 2.2945, 0); // tour eiffel

I am getting the TLE for the ISS from Celestrak:
https://celestrak.org/NORAD/elements/gp.php?CATNR=25544

I have compared the passes (all passes, in local time) obtained in my app with N2YO and I can see pretty similar results:

image

I don't see anything wrong in your code (btnCalc_Click). I see you're using a different source for the TLE. Could it be the root cause why you're seeing inaccurate results ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants