GenerateGrid:

Path: Math/AStar

% Generate a grid on a sphere
 There can be more than one sphere
   
 The grid is evenly spaced in right ascension and elevation. You can 
 select either a spherical grid (with one point at the pole) or a 
 even distributed grid.

 Type GenerateGrid for demo.
--------------------------------------------------------------------------
   Form:
   GenerateGrid;
   [rA, dec, a, kDec, 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.
   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

Back to the Math Module page