geomag 0.1.0 geomag: ^0.1.0 copied to clipboard
Translate GPS location data to geo-magnetic data such as magnetic declination.
geomag #
Translate GPS location data to geo-magnetic data such as magnetic declination.
[GeoMag] takes data from the World Magnetic Model Coefficients, [WmmCof], to initialize. You can provide your own or use the bundled data, WMM-2015v2 from 09/18/2018. Use [calculate()] to process GPS coordinates into a [GeoMagResult].
See http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml and https://www.ngdc.noaa.gov/geomag/WMM/wmm_rdownload.shtml.
This is a port of the geomagJS package, https://github.com/cmweiss/geomagJS.
Adapted from the geomagc software and World Magnetic Model of the NOAA Satellite and Information Service, National Geophysical Data Center.
The WMM-2015v2.COF data in included for convenience.