>  Docs Center  >  Libraries  >  ASTROLIB  >  MAG2GEO
Libraries

MAG2GEO

MAG2GEO

Name


      MAG2GEO()

Purpose


    Convert from geomagnetic to geographic coordinates

Explanation


 
    Converts from GEOMAGNETIC (latitude,longitude) to GEOGRAPHIC (latitude,
    longitude). (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



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us