Map:

Path: Common/Graphics

% Draws a 2 or 3 dimensional map of a planet. 
 Turns on mouse driven 3D rotation if mType == '3d'. String inputs are
 not case sensitive. planet is the name of a .mat file with the
 variables planetMap and planetColorMap. 
 
 You generate the planet data structure like this example for a gray scale
 image of Pluto; the replication of the image map is needed because the png is
 gray scale.

   p = imread('pluto.png');
   p3(:,:,1) = p;
   p3(:,:,2) = p;
   p3(:,:,3) = p;
   planet.planetMap = p3;
   planet.radius = Constant('equatorial radius pluto');
   planet.name = 'Pluto';

 The planetColorMap is not needed if the planetMap is true color, with
 channels for R, G, B (m x n x 3).
 
 The radius field may be an array of semimajor axes, (1x3). See Ellipsd.
--------------------------------------------------------------------------
   Form:
   p = Map( planet, mType, noNewFig )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   planet        (1,:)    Any planet mat-file name or the structure
                            planet.planetMap
                            planet.planetColorMap
                            planet.radius
   mType         (2,:)   '2d' or '3d', default is '3d'
   noNewFig      (1,1)    If entered, don't create a new figure.

   -------
   Outputs
   -------
   p             (.)      Planet image data structure

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

Children:

Common: General/DeBlankLT
Common: Graphics/Axis3D
Common: Graphics/Ellipsd
Common: Graphics/NewFig
Common: Graphics/PltStyle
Common: Graphics/TitleS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Math: Linear/DupVect

Back to the Common Module page