Path: SC/Environs
% Read in the magnetic field from a file.
The file should be in the form:
n m g(n,m) h(n,m)
-------------------------------------------------------------------
1 0 0.09732 0.0
1 1 0.03220 -0.09889
2 0 0.07448 0.0
2 1 0.00664 0.11230
The function assumes that there isn't a header. There is a demo that
loads the field of Neptune from 'NeptuneMagField.txt.
--------------------------------------------------------------------------
Form:
[g, h] = ReadMagField( fileName )
--------------------------------------------------------------------------
------
Inputs
------
fileName (1,:) Text file
-------
Outputs
-------
g (n,n) G coefficients
h (n,n) H coefficients
--------------------------------------------------------------------------
Back to the SC Module page