Skip to content

Python wrappers for Tsyganenko's geomagnetic field fortran routines

License

Notifications You must be signed in to change notification settings

johncoxon/tsyganenko

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Licence

Though edits had to be made to the fortran code to accomodate f2py compilation, all Fortran files and their scientific contents are developed by and belong to N. A. Tsyganenko and colleagues.

The Python wrappers were originally written by Sebastien de Larquier in 2012 and expanded by John Coxon in 2020. These wrappers allow for the Fortran subroutines to be easily called in Python.

Installation

To install the Tsyganenko python module, from this directory run:

cd src/tsyganenko
make clean
make
cd ../..
pip install .

To run the unit tests to confirm that the module behaves as expected, run:

cd tests
pytests tests.py

Use

To use this module, simply follow the example provided in the Trace object docstring.

import tsyganenko as tsy
tsy.Trace?

Alternatively, there are example notebooks provided which can be used to explore what this module can do. To access these, run:

cd notebooks
jupyter notebook

About

Python wrappers for Tsyganenko's geomagnetic field fortran routines

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 53.7%
  • Fortran 44.9%
  • Python 1.3%
  • Makefile 0.1%