- NAME
GEO2MAG()
- PURPOSE
Convert from geographic to geomagnetic coordinates
- EXPLANATION
Converts from GEOGRAPHIC (latitude,longitude) to GEOMAGNETIC (latitude,
longitude). (Altitude remains the same)
Latitudes and longitudes are expressed in degrees.
- CALLING SEQUENCE
mcoord=geo2mag(gcoord)
- INPUT
gcoord = a 2-element array of geographic [latitude,longitude], or an
array [2,n] of n such coordinates.
- KEYWORD INPUTS
None
- OUTPUT
a 2-element array of magnetic [latitude,longitude], or an array [2,n]
of n such coordinates
- COMMON BLOCKS
None
- EXAMPLES
geographic coordinates of magnetic south pole
IDL> mcoord=geo2mag([79.3,288.59])
IDL> print,mcoord
89.999992 -173.02325
- MODIFICATION HISTORY
Written by Pascal Saint-Hilaire (Saint-Hilaire@astro.phys.ethz.ch),
May 2002