A pure Julia implementation of the Altitude-Adjusted Corrected Geomagnetic (AACGM) coordinate system. Fast and accurate.
A Julia wrapper LibAACGM for the AACGM-v2 C library is also available in the LibAACGM directory, mainly used for testing and benchmarking.
Installation: at the Julia REPL, run using Pkg; Pkg.add("LibAACGM")
using GeoAACGM
using Dates
dt = DateTime(2029, 3, 22, 3, 11)
glat, glon, height = 45.5, -23.5, 1000
# Convert geocentric to AACGM
mlat, mlon, r = geoc2aacgm(glat, glon, height, dt)
# Convert geodetic to AACGM
mlat, mlon, r = geod2aacgm(glat, glon, height, dt)