[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orekit Developers] TLE.getLine1 problem



Petrus Hyvönen <petrus.hyvonen@gmail.com> a écrit :

Hi,

Hi Petrus,


I'm using orekit 5.0.3 through Python-JCC so I have unfortionately
very little debug info.
I have a TLE object that I created and it propagates fine, but fails
at generating Line1 through TLE.getLine1. Line 2 works fine.

JavaError: java.lang.StringIndexOutOfBoundsException: String index out
of range: 67
    Java stacktrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 67

	at java.lang.StringBuffer.charAt(Unknown Source)

	at org.orekit.tle.TLE.checksum(TLE.java:630)

	at org.orekit.tle.TLE.buildLine1(TLE.java:335)

	at org.orekit.tle.TLE.getLine1(TLE.java:271)

It seems the generated line is one character too short (it should have 68 characters, from 0 to 67, and here it cannot access the last character at index 67). Could you add a print statement between lines 334 and 336 in TLE.java and send the printed line ? There is probably one field that is too short, perhaps due to the formatting that occurs in the buildLine1 method up to line 334.

best regards,
Luc



My related values are (from TLE.getXXX):
Bstar = 1.61652325142e-08
Epoch = 2012-01-26T11:00:00.000
Ecc = 1.09462694314e-17
Inclincation [deg] = 98.2110658471
Mean Anomaly [deg] = 0.00840773904342
Launch Year = 2000
Perigee Argument = 359.973568353
Raan =  95.1981492898
Rev at epoch =  1
MM first der = 0.000277257783139
MM second der =  -0.000231259154379

Regards
/Petrus





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.