Skip to content

Draft of magnetosphere script in C with additonal main function for testing#3

Open
Tristan5312 wants to merge 4 commits into
mainfrom
update-wmm-tests
Open

Draft of magnetosphere script in C with additonal main function for testing#3
Tristan5312 wants to merge 4 commits into
mainfrom
update-wmm-tests

Conversation

@Tristan5312

Copy link
Copy Markdown

No description provided.

@Tristan5312

Copy link
Copy Markdown
Author

Here's the current output (32 bit float) :
Test Name | Input Mag | Output B_ECI [Bx, By, Bz] (nT)

Matlab NED Vector (Correct magnetic field): [2.0598e+04, 6.0145e+03, -1.8521e+04]
Our NED Vector: [2.0980e+04, 6.3467e+03, -2.0545e+04]
Our accuracy: 0.999135
Our angular error (degrees): 2.383759
Our Starting ECI position: [4.5000e+06, -3.7000e+06, -3.4000e+06]
SAA Center | 6745 km | [ 25921.6, -13096.7, 7686.1] (Total: 30042.2 nT)

Matlab NED Vector (Correct magnetic field): [1.2509e+04, -2.9673e+03, 4.3991e+04]
Our NED Vector: [1.1801e+04, -1.5994e+03, 4.4820e+04]
Our accuracy: 0.999350
Our angular error (degrees): 2.066207
Our Starting ECI position: [4.2000e+06, 0.0000e+00, 5.3000e+06]
ISS Max Lat | 6762 km | [-37000.4, -1599.4, -27912.0] (Total: 46375.3 nT)

Matlab NED Vector (Correct magnetic field): [1.2450e+03, -1.3110e+03, 4.7655e+04]
Our NED Vector: [9.8540e+02, -1.1838e+03, 4.7727e+04]
Our accuracy: 0.999981
Our angular error (degrees): 0.351102
Our Starting ECI position: [5.0000e+05, 0.0000e+00, 6.7500e+06]
Mag N Pole | 6768 km | [ -4486.4, -1183.8, -47526.2] (Total: 47752.2 nT)

Matlab NED Vector (Correct magnetic field): [6.2109e+03, -1.3507e+04, -3.8299e+04]
Our NED Vector: [7.7706e+03, -1.3067e+04, -3.5224e+04]
Our accuracy: 0.998511
Our angular error (degrees): 3.126937
Our Starting ECI position: [-2.0000e+06, 2.0000e+06, -6.1000e+06]
Mag S Pole | 6724 km | [ -6173.1, 24652.9, -28739.7] (Total: 38364.6 nT)

Matlab NED Vector (Correct magnetic field): [2.3820e+04, -2.0337e+02, -1.1299e+04]
Our NED Vector: [2.3067e+04, -1.0774e+03, -1.1754e+04]
Our accuracy: 0.999025
Our angular error (degrees): 2.530180
Our Starting ECI position: [0.0000e+00, 6.7700e+06, 0.0000e+00]
Eq 90 deg E | 6770 km | [ 1077.4, 11753.7, 23067.2] (Total: 25911.5 nT)

Matlab NED Vector (Correct magnetic field): [2.0728e+04, 4.2250e+03, 2.6296e+04]
Our NED Vector: [2.0789e+04, 3.9933e+03, 2.4871e+04]
Our accuracy: 0.999590
Our angular error (degrees): 1.640082
Our Starting ECI position: [2.5000e+06, -5.3000e+06, 3.4000e+06]
Bermuda | 6775 km | [-10023.3, 30609.7, 5412.3] (Total: 32660.6 nT)

Matlab NED Vector (Correct magnetic field): [3.3273e+04, -9.4567e+01, -9.5107e+03]
Our NED Vector: [3.3266e+04, -6.1407e+02, -1.0062e+04]
Our accuracy: 0.999772
Our angular error (degrees): 1.224772
Our Starting ECI position: [-6.7700e+06, 0.0000e+00, 0.0000e+00]
Pacific 180 | 6770 km | [-10062.1, 614.1, 33266.2] (Total: 34760.1 nT)

Matlab NED Vector (Correct magnetic field): [1.8653e+04, -3.0303e+03, 3.3657e+04]
Our NED Vector: [1.7830e+04, -3.8997e+03, 3.4578e+04]
Our accuracy: 0.999327
Our angular error (degrees): 2.102916
Our Starting ECI position: [3.4000e+06, 3.4000e+06, 4.8000e+06]
45N 45E | 6794 km | [-23427.3, -28942.4, -11927.7] (Total: 39099.5 nT)

Matlab NED Vector (Correct magnetic field): [1.3022e+04, 8.2517e+03, -3.9577e+04]
Our NED Vector: [1.1627e+04, 9.7147e+03, -4.0458e+04]
Our accuracy: 0.998819
Our angular error (degrees): 2.784458
Our Starting ECI position: [1.1000e+06, 0.0000e+00, -6.6000e+06]
SSO Polar | 6691 km | [ 18080.7, 9714.7, -38015.1] (Total: 43202.3 nT)

Matlab NED Vector (Correct magnetic field): [2.3925e+04, 2.3729e+02, 2.5251e+04]
Our NED Vector: [2.4654e+04, -1.1000e+03, 2.6104e+04]
Our accuracy: 0.999298
Our angular error (degrees): 2.147398
Our Starting ECI position: [-2.8000e+06, -4.8000e+06, 3.8000e+06]
Vandenberg | 6732 km | [ 16927.5, 31201.6, 5510.2] (Total: 35922.7 nT)

…sphere_update.c; modified magnetosphere.c to match PVDXos style guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants