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

Commitf5f37c7

Browse files
authored
Update README.md
1 parentb095a51 commitf5f37c7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ tricky orbits.
99
#License
1010
This code is released under an unlicense. Do what you want with it completely at your own risk. It is based on code released by the Center for Space Standards & Innovation ([CSSI](http://www.centerforspace.com/)). Their[code](http://www.centerforspace.com/downloads/) is based on a US Government standard. No liability and no warranty are offered.
1111

12+
#Overview
13+
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.
14+
1215
#C
1316

1417
gcc -o testsgp4 SGP4.c TLE.c TestSGP4.c -lm
18+
1519
./testsgp4
20+
1621
Typical errors r=6.722191e-03 mm, v=4.812040e-04 mm/s
1722

1823
#C++
@@ -27,13 +32,15 @@ Typical errorsr=0.00672218292027499 mmv=0.00481204064816902 mm/s
2732

2833
#FORTRAN 90
2934
I'm a bit proud of this port myself. I've been seeing SGP4 in FORTRAN for decades now. However, all the other versions I've seen were using COMMON data blocks. By porting the code from C to FORTRAN 90, I was able to organize the code in modules and take advantage of custom data types, ElsetRec and TLE. Now others can include these modules in their code without having to have the common block.
35+
3036
gfortran ElsetRec.f90 SGP4.f90 TLE.f90 TestSGP4.f90 -o testsgp4
3137

3238
Typical errors r= 6.7121279555256517E-003 mm, v= 4.8048366357605730E-004 mm/s
3339

3440
#Java
3541

3642
javac -d .*.java
43+
3744
java -classpath . sgp4.TestSGP4
3845

3946
Typical errorsr=0.006722149979022173 mmv=4.812041812093286E-4 mm/s

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp