>  Docs Center  >  Libraries  >  Mankoff  >  G2M
Libraries

G2M

G2M

Name


G2M

Purpose


      Translate from geographic to magnetic (CGM) coordinates

Category


      SNOE, coordinates

Calling Sequence


      G2M, Glat, Glon, Year, Mlat, Mlon

Inputs


      Glat: An array of latitudes. Should be in geographic
              coords. This array can be of any size and of any
              number of dimensions.
      Glon: A vector of geographic longitudes. Must contain a
              valid number for each element in the Glat
              array. Longitudes can be either -180W to 180E, or 0E
              to 360E.
      Year: The year to use for the CGM model

Keyword Parameters


      LSHELL: Set this keyword to a variable that will contain the
              Lshell values for each [Glat,Glon] pair.
      BFIELD: Set this keyword to a variable that will contain the
              B Field Strength for each [Glat,Glon] pair.

Outputs


      Mlat: (output) Magnetic latitudes corresponding to each
              [Glat,Glon] pair
      Mlon: (output) Magnetic longitudes corresponding to each
              [Glat,Glon] pair. Matches each Mlat value. The output
              longitudes are ALWAYS on a -180W to 180E grid.

Dependencies


      Uses LOAD_CGM.PRO
            RANGECIR.PRO

Example


      G2M, [-90,-60,-30,0,30,60,90], [0,0,0,0,0,0,0], 1998, Mlat, Mlon
      G2M, [0], [0], 1998, Mlat, Mlon, lshell=lshell, bfield=bfield

Modification History


  Written by: Ken Mankoff, September 2001.



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