SkillAgentSearch skills...

Geo2mag

Convert geodetic coordinates to geomagnetic coordinates via IGRF web service

Install / Use

/learn @space-physics/Geo2mag
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Geographic ↔ Geomagnetic Coordinate Conversion

Convert geodetic coordinates to geomagnetic coordinates, using the UNENCRYPTED connection to IGRF web service: http://wdc.kugi.kyoto-u.ac.jp/igrf/gggm/index.html

Install

python -m pip install -e .

Optional: If you wish to plot maps, consider installing CartoPy like:

conda install cartopy

Usage

This program reads coordinates from file or command line.

python GeomagConvert.py 2015 -c 65 -148 geomag

65.56 -96.46

python GeomagConvert.py 2015 -c 65.56 -96.46 geodetic

65.004 -147.994

Read coords from file

Convert .KMZ file containing geodetic coordinates to geomagnetic coordinates:

python GeomagConvert.py 2015 -f tests/example.kml

or likewise with a CSV or XLS file.

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated1mo ago
Forks3

Languages

Python

Security Score

90/100

Audited on Feb 23, 2026

No findings