Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions TLE2OrbitElements.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def TLE2OE(line1,line2):
#8 21-32 Epoch (day of the year and fractional portion of the day) 264.51782528 ##three number than decimal then 8 numbers
Epoach = float(line1[20:32])
#9 34-43 First Time Derivative of the Mean Motion divided by two [11] -.00002182
DMeanMotion =float(line1[33:43])
DMeanMotion = 2 * float(line1[33:43])
if line1[33]=='-' :
DMeanMotion =-1*DMeanMotion
#10 45-52 Second Time Derivative of Mean Motion divided by six (decimal point assumed) 00000-0
DDMeanMotion = float(line1[45:50])*10**(-5)
DDMeanMotion = 6 * float(line1[45:50])*10**(-5)
if line1[44]=='-' :
DDMeanMotion =-1*DDMeanMotion
if line1[50]=='-' :
Expand All @@ -34,7 +34,7 @@ def TLE2OE(line1,line2):
#11 54-61 BSTAR drag term (decimal point assumed) [11] -11606-4
#BStar =float(line1[53:61])
# self.assertTrue(line1[53]=='-')
BStar = float(line1[54:59])
BStar = float(line1[54:59]) * 10**(-5)
if line1[53]=='-' :
BStar =-1*BStar
if line1[59]=='-' :
Expand Down Expand Up @@ -92,4 +92,4 @@ def TLE2OE(line1,line2):
print('Mean Anomaly (degrees) %s' % MeanAnamoly_deg)
print('Mean Motion (revolutions per day) %s' % MeanMo)
print('Revolution number at epoch (revolutions) %s' % RevNo)
'''
'''