Geomag Library Demo and Test

This is a simple page to demonstrate the geomag.js library which depends on a world magnetic model coefficient file. The coefficient file and more information are available at The World Magnetic Model site of NOAA's National Geophysical Data Center.

The source code repository for the geomag.js library is at https://github.com/cmweiss/geomagJS.

Latitude: (decimal degrees - north is positive)
Longitude: (decimal degrees - east is positive)
Altitude: (feet)
Variation: (decimal degrees - east is positive)
Test
World Magnetic Model (WMM2015) - Test values (pdf)
Date Alt (km) Lat (deg) Lon (deg) D (deg) I (deg) H (nT) X (nT) Y (nT) Z (nT) F (nT) GV (deg)