[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
New Address!   --   Neue Adresse!
[Uni logo]


GEO2MAG() Source code in geo2mag.pro

GEO2MAG()

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 Parameters
       gcoord = a 2-element array of geographic [latitude,longitude], or an
                array [2,n] of n such coordinates.
Keyword Parameters
       None
Output Parameters
       a 2-element array of magnetic [latitude,longitude], or an array [2,n]
         of n such coordinates
Common Blocks
       None
Example
       geographic coordinates of magnetic south pole
       IDL> mcoord=geo2mag([79.3,288.59])
       IDL> print,mcoord
       89.999992      -173.02325
Revision History
       Written by Pascal Saint-Hilaire (Saint-Hilaire@astro.phys.ethz.ch),
            May 2002

Last modified by pro2html on 2002 May 16 at 03:21 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically