GenerateGrid:

--------------------------------------------------------------------------
   Generate a grid on a sphere.
   The grid is evenly spaced in right ascension and elevation.

   Type GenerateGrid for demo.
--------------------------------------------------------------------------
   Form:
   GenerateGrid;
   [rA, dec, a, kDec, nodeNom, kR, r, nPL] = GenerateGrid( n, r, stayout, type )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   n          (1,1)   Number of increments of declination
   r          (1,:)   Radius of sphere(s)
   stayout    (:)     Stayout zones
                       .rOffset  (3,1) Origin
                       .u        (3,1) Centerline
                       .angle    (1,1) Cone angle
   type       (1,:)   'globe' or 'spherical'

   -------
   Outputs
   -------
   rA         (1,:)   Right ascension
   dec        (1,:)   Declination
   a          (1,:)   1 if active 0 if inactive
   kDec       (1,n)   The first element in rA and dec for each
                      new declination.
   nodeNom    (1,:)   List of nodes along the nominal trajectory
   kR         (1,:)   The first element of each new radius
   r          (1,:)   Radii of grid points
   nPL        (1,:)   Nodes per level

--------------------------------------------------------------------------

Children:

Common: Graphics/NewFig
Common: Graphics/TitleS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Transform/RaDec2U
Math: AStar/GlobeGrid
Math: AStar/SphericalGrid
Math: Geometry/IntersectLineAndEllipsoid
Math: Linear/Dot
Math: Linear/Unit