idlastro / Astronomical Utilities: MAG2GEO

[Source code]

NAME
MAG2GEO()
PURPOSE
Convert from geomagnetic to geographic coordinates
EXPLANATION
Converts from GEOMAGNETIC (latitude,longitude) to GEOGRAPHIC (latitude,
ongitude).    (altitude remains the same)
CALLING SEQUENCE
gcoord=mag2geo(mcoord)
INPUT
mcoord = a 2-element array of magnetic [latitude,longitude], or an 
         array [2,n] of n such coordinates.
KEYWORD INPUTS
None
OUTPUT
a 2-element array of geographic [latitude,longitude], or an array [2,n]
     of n such coordinates                   
COMMON BLOCKS
None
EXAMPLES
IDL> gcoord=mag2geo([90,0])       ; coordinates of magnetic south pole
IDL> print,gcoord
79.300000      -71.409990
MODIFICATION HISTORY
Written by Pascal Saint-Hilaire (Saint-Hilaire@astro.phys.ethz.ch), 
 May 2002