Krishan Khurana’s Magnetic Field Model written in IDL
The Khurana magnetic field model is an empirical model based on data from the Galileo spacecraft. The code was originally written in Fortran 77/90 but has since been converted into IDL (Interactive Data Language developed by ITT). Below is the code itself along with a few sample programs for getting started. It is recommended that you have at least IDL version 7.0.4 to run these procedures.
WARNING: Only use the kk_2009 procedure and the internal ctimer function. The other internal functions are implemented with global variables and can produce erroneous results if called individually.
- Field Model – kk_2009.pro
- Usage Example – sample.pro – sample output
- Fieldline Tracing Example – sampleTrace.pro
[Our website does not like the extension .pro, but does like .zip, so the files above have been zipped.]
The following images are generated from the sampleTrace.pro procedure.