1manprojects / one_Sgp4

C# SGP4 orbit prediction Library
MIT License
62 stars 14 forks source link

Error "Eccentricity is out of bounds" #28

Closed JDragonB closed 1 year ago

JDragonB commented 1 year ago

Hi, I have tracked 9684 satellites and I got this error on 6 of them : DateTime : 09/02/2023 14:29:03 (France) Satellites : LEMUR 2 KOBYSZCZE, AEROCUBE 14A, FLOCK 3P 61, NACHOS-1, AEROCUBE 15A, DANTESAT TLE-Data : JSON from Space-Track (07/02/2023 16h21 France) Function : [One_Sgp4.SatFunctions]::getSatPositionAtTime Error :

Exception lors de l'appel de « getSatPositionAtTime » avec « 3 » argument(s) : « LEMUR 2 KOBYSZCZE -Eccentricity is out of bounds
Nom du paramètre : Sgp4Calculation »
Au caractère D:\Samuel\Bureau\C2 FACTORY\Scripts\Space Vision 2\Space Vision 2.ps1:887 : 9
+         $DataECI = [One_Sgp4.SatFunctions]::getSatPositionAtTime($Par ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

image

1manprojects commented 1 year ago

Please check the satellites that throw this error if they are still in orbit. For example the LEMUR 2 KOBYSZCZE is no longer in orbit and as decayed on the 2023-02-03.

If the TLE - Data is outdated or the Satellite is no longer in orbit the orbital calculations will result in a -Eccentricity out of bounds error. This is expected behavior. This exception will be thrown for multiple reasons like the input data is outdated, wrong or the orbit has decayed. The library cannot determine the exact reason thus an exception is thrown.

This was already discussed in #18

JDragonB commented 1 year ago

Rhaaa... thanks.

I had check that but sometime before... image

Finally everything is working too well!