This is a MATLAB code for Grad-Shafranov reconstruction, which is a magnetohydrodynamic method to reconstruct the magnetic field around a spacecraft in situ trajectory through a magnetic flux rope in interplanetary space. It can derive the rope local orientation, the magnetic flux content and other parameters, and has been used extensively in the space science literature.
Details on the usage can be found in the included handbook.
Please look Hu & Sonnerup 2002 on the initial development of this methd:
The code can be used to create results for scientific publications, but these results must be shown to us before submission in order to assess their correctness.
Actually, if this code was employed as part of a scientific publication, please include us as co-authors.
This code is finished and will not be further developed from our side. However, a development of a user friendly version of this code in python is strongly encouraged.