https://github.com/juliaspacephysics/geoaacgm.jl
Julia library for Altitude-Adjusted Corrected Geomagnetic (AACGM) coordinate system. Simple, fast, and accurate.
https://github.com/juliaspacephysics/geoaacgm.jl
ionosphere julia space-physics
Last synced: 12 months ago
JSON representation
Julia library for Altitude-Adjusted Corrected Geomagnetic (AACGM) coordinate system. Simple, fast, and accurate.
- Host: GitHub
- URL: https://github.com/juliaspacephysics/geoaacgm.jl
- Owner: JuliaSpacePhysics
- License: mit
- Created: 2025-05-29T16:53:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-19T22:09:46.000Z (12 months ago)
- Last Synced: 2025-06-19T23:18:55.944Z (12 months ago)
- Topics: ionosphere, julia, space-physics
- Language: Julia
- Homepage: https://juliaspacephysics.github.io/GeoAACGM.jl/
- Size: 1.73 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GeoAACGM
[](https://juliaspacephysics.github.io/GeoAACGM.jl)
[](https://github.com/JuliaSpacePhysics/GeoAACGM.jl/actions/workflows/CI.yml?query=branch%3Amain)
[](https://github.com/aviatesk/JET.jl)
[](https://github.com/JuliaTesting/Aqua.jl)
[](https://codecov.io/gh/JuliaSpacePhysics/GeoAACGM.jl)
[](https://doi.org/10.5281/zenodo.15588522)
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`](./LibAACGM) directory, mainly used for testing and benchmarking.
## Installation
```julia
using Pkg
Pkg.add("GeoAACGM")
```
## Usage
```julia
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)
```