3D geomagnetic fieldlines from pymagglobal

vector fieldlines of the Earth's magnetic field

This extension to pymagglobal provides python scripts to generate 3D vectors of the Earth’s magnetic field. These can be used to generate images of the geomagnetic fieldlines like the one above. The extension is provided as several python scripts, available via the git repository of the project. In the examples section we provide two use cases, generating images with Mayavi and ParaView. If you have trouble using the scripts or really any question, do not hestitate to contact us.

If you use this extension, please cite it the following way


Schanner, M. A. (2022)
pymagglobal extension for 3D-fieldlines
original doi: doi-shield


As this is an extension to pymagglobal, you have to have pymagglobal installed in order to use it. See the pymagglobal installation guide for additional information. This extension further depends on wand and tqdm:

$ pip3 install wand tqdm

Depending on your use case, you also have to install Mayavi or ParaView and PyEVTK to use this extension. Please refer to the usage examples for additional information.


GNU General Public License, Version 3, 29 June 2007

Copyright (C) 2020 Helmholtz Centre Potsdam GFZ, German Research Centre for Geosciences, Potsdam, Germany

pymagglobal is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

pymagglobal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.