Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit874a279

Browse files
committed
Merge branch 'master' ofhttps://github.com/aholinch/sgp4
2 parents5cbbb35 +0d2307f commit874a279

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ This code is released under an unlicense. Do what you want with it completely a
1212
#Overview
1313
The astrodynamics calculations are all implemented as static functions in the SGP4 class/module. The ElsetRec datastructure is used to maintain initialization state across those methods. For convenience, I have implemented the TLE class. The constructor accepts the two lines of the the two-line element set as arguments. To then propagate (simulate) the orbit, I have implemented a few getRV methods in each language. One will accept the number of minutes since the epoch as an argument. In most languages, I've also implemented a version of getRV that accepts a Date or DateTime object to simulate the orbit at a specific point in time. Sometimes, if I didn't find a helper class in the target language that I liked, I simply used the number of milliseconds since January 1, 1970 as the argument.
1414

15+
#Languages
16+
*[C](#c)
17+
*[C++](#c-1)
18+
*[C#](#c-2)
19+
*[FORTRAN 90](#fortran-90)
20+
*[Java](#java)
21+
*[JavaScript](#javascript)
22+
*[LibreOffice Basic](#libreoffice-basic)
23+
*[Matlab/Octave](#matlaboctave)
24+
*[Python 2/3](#python)
25+
*[R](#r)
26+
*[Ruby](#ruby)
27+
1528
#C
1629

1730
gcc -o testsgp4 SGP4.c TLE.c TestSGP4.c -lm
@@ -74,13 +87,15 @@ ans = Typical errors r=6.722191E-03 mmv=4.812040E-04 mm/s
7487
#Python
7588
The SGP4 and TLE code works in both Python 2 and Python 3. The TestSGP4 code should also work in both versions and has a dependency on the standard json package. Simply execute your preferred version of python from the python src directory.
7689

90+
python2 TestSGP4.py
7791

7892
Typical Errors
7993
0.00651341005177
8094
mm
8195
0.000481251231334
8296
mm/s
8397

98+
python3 TestSGP4.py
8499

85100
Typical Errors
86101
0.006513410051766991

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp