How MagGeo Works

MagGeo is a tool that contains a set of python functions to carry out a data manipulation and mathematical processes to transform the data from Swarm Constellation,include the modelled values from CHAOS model ( last version in December 2019) and annotate the interpolated values into every GPS point in a given GPS trajectory.

The following process is a set of three steps, 1. Get the Swarm data, particulary the magnetic residuals in the NEC components. 2. Run the Spatio-temporal kernel where the script will filter the Swarm data based on our spatial-temporal cylinder, to interpolate the magnetic componentes in the NEC frame for the given GPS track. Finally using the enriched GPS track, the final step will be the 3. Calculation of Magnetic Components which use the CHAOS model to compute the magnetic components at the ground level. With the interpolated magnetic values corrected by the ionospheric contribution. The script will compoute the other magnetic components including F (magnetic intensity), H (Horizontal component), Declination and Inclination. For detalied information of this process go to the Main Notebook.

Interpolation (ST-IDW) and Annotation Process

Once we have requested the data we need for each point in the GPS Track and considering we have gathered the available data from the three satellites for one day ( 24 hours, every 60 seconds around 1440 Swarm measures per satellite). Now we need to filter in space and time the available points to compute the magnetic values for each GPS point in its particular date and time. Therefore, before running the interpolation process we set four functions that will require the latitude and longitude and the epoch time of each GPS point to filter the Swarm points into what we called Space-Time Cylinder. The following picture can provide a better explanation about how the points inside the space-time cylinder are included or excluded. Figure I, shows how the R of the Space-Time cylinder is based on the GPS point latitude. Figure II, illustrate the geometric components behing the space-time cylinder where the points are filtered and included in the interpolation process. Figure B, will help you to understand how the following functions compute the required parameters Figure III shows the idea behind the interpolation process for each GPS point, requesting and processing the avaliable Swarm messuares by the three satellites. For more information about the time-space windows please read the full paper where we explain the details of it.

Therefore, before running the interpolation process we set four functions that will require the latitude and longitude and the epoch time of each GPS point to filter the Swarm points into what we called Space-Time Cylinder. The following picture can provide a better explanation about how the points inside the space-time cylinder are included or excluded. Figure I, shows how the R of the Space-Time cylinder is based on the GPS point latitude. Figure II, illustrate the geometric components behing the space-time cylinder where the points are filtered and included in the interpolation process. Figure B, will help you to understand how the following functions compute the required parameters Figure III shows the idea behind the interpolation process for each GPS point, requesting and processing the avaliable Swarm messuares by the three satellites. For more information about the time-space windows please read the full paper where we explain the details of it.