NOAA Logo, NOAA Satellites and Information, National Geophysical Data Center (NGDC).

Go to the NGA Web Go to the WMM Web Home Go to the Geomagnetic Data Home Go to the WMM Web Home Go to Background on Geomagnetism Go to WMM accuracy and limitations Go to download WMM software and test values Go to WMM maps of the magnetic field elements Go to Copyright and license information
World Magnetic Model (WMM) Banner
 NOAA | NGA | NCEI (formerly NGDC) | Geomagnetic Data & Info | WMM Home comments |  privacy policy



Brief description of geomagnetism and observation systems

About WMM

Learn more about model derivation, uncertainties and magnetic poles

Model & Software

Download model coefficients, software and documentation

Online Calculators

Calculate magnetic field values at or near the Earth surface


Browse imagery and contour maps for main field and secular change

Uses of WMM

Common applications of WMM


License and copyright information

Third Party Software

WMM program ports to other languages

Several users have ported the WMM C or Fortran programs to other languages and have kindly offered to share these programs. Neither the authors nor NGDC can provide any warranty or technical support for these programs. Only non-commercial "free-ware" will be linked to from this site. Linking to third party software does not imply an endorsement or review of any kind from the Federal Government. Users are encouraged to verify results based on the WMM test values. NOAA Disclaimer for external links. Many of these software still use WMM2010.

Language ~ Size Date Author Description
Excel Spreadsheet 322 KB Revised April 13th 2015 Noah Hassler Excel implementation. Does not require .dll or outside software, calculations done entirely in Microsoft Excel.
DLL 117 KB Revised April 13th 2015 Steven M. Shope DLL implementation. Uses the IGRF-12 rather than the WMM.
Java 16 KB Revised May 26th 2015 John St. Ledger Java implementation.
Visual Studio C++ 467 KB Revised January 2010 Garry Petrie GeoMag 3.0, the Geographic Magnetic Calculator, is a tool to determine UTM Coordinates and the Magnetic Declination that correspond to a longitude/latitude location.
C++ 2 MBRevised January 10th 2012 Charles Karney GeographicLib is a C++ library of geographic routines. The MagneticModel class reports the magnetic field for a given time and a position. The class currently supports WMM2010, EMM2010 and IGRF11. Provided by Charles Karney.
Visual Basic 190 KBRevised November 15th 2011 Fred Neudecker Visual Basic class version of GeoMag 7.0 (IGRF) for desktop applications. This class was written in Visual Studio 5.0.
Python 197 KBRevised December 18th 2014 Christopher Weiss A python version of the WMM algorithm
Java Script Revised December 18th 2014 Christopher Weiss The WMM algorithm in Javascript.
Java Revised May 15th 2012 Orekit Orekit is a free low-level space dynamics library. The GeoMagneticField class calculates the magnetic field for a given time and position. The class currently supports WMM and IGRF.
Objective C Revised January 10th 2013 Stephen Trainor A simple Objective-C wrapper for the WMM. Allow the model to be easily used in iOS.
Matlab 92.6 KBRevised April 24th 2014 David F. Crouse A matlab implementation of a spherical harmonic calculator.

If you wish your software to be included on this page, please contact us.

Last Modified on: Tuesday, 20-Oct-2015 09:46:28 MDT
NOAA > NESDIS > NCEI (formerly NGDC)
Maintained by: