MapMaker is a cartographic processing tool for generating tailor-made image maps of planetary surfaces. Maps are defined by specifying a dataset, latitude and longitude range, map scale (or resolution), map projection, and output format. Processing options such as contrast stretch and grid overlay can additionally be specified.
The sources of input for MapMaker are the digital global maps produced for NASA by flight projects and the Planetary Geology and Geophysics program. The global maps, contained on CD-ROM media, include the Mars MDIM series, Venus F-Map, and Clementine basemap mosaics. These data products are available through the Planetary Data System Imaging Node.
MapMaker is primarily intended as a "cartographic engine" for high-level applications that require custom maps of planetary surfaces. An application creates a command file describing a map to be produced and then launches MapMaker to create the map. The resulting map can be included in additional processing by the application. MapMaker has been used successfully in the World Wide Web applications "Mars Explorer for the Armchair Astronaut" and the "Planetary Atlas".
MapMaker can additionally operate as a stand-alone program. The "mmedit" interface allows a user to
specify a map to be produced by MapMaker.
MapMaker is a software package that produces tailor-made images from Planetary Data System datasets. Several datasets have been developed by NASA programs, including CD-ROM sets of Mars, Venus and the Moon. Any cartographic data with a sinusoidal projection can be used by MapMaker if the correct PDS labels and support files are created (see MAPMAKER APPLICATION DEVELOPMENT: PART III: BUILDING A DATASET).
MapMaker can access datasets on hard-drive, CD-ROM jukebox, or common CD-ROM reader. Because of the large size of the planetary datasets, a CD-ROM jukebox provides the smoothest interface between the planetary datasets and MapMaker.
Installation of MapMaker requires a knowledge of the UNIX operating system and environment (see
MAPMAKER VERSION 2.0 INSTALLATION AND CONFIGURATION MANUAL) and should be performed
by someone with system administration skills. Once MapMaker has been installed a user can specify and create
maps through a web or web-like application, through the mmedit user interface provided, or through any other interface
developed to run MapMaker (see MAPMAKER APPLICATION DEVELOPMENT). This document provides
information on the stand-alone user interface, mmedit.
Currently, the platforms supported are Sun's Sparc20 running under Solaris 2.5.1 and PC workstations
running RedHat Linux version 6.1. MapMaker was developed and tested on these platforms, but should work
on similar UNIX platforms.
MapMaker manages it's executable files through a series of environment variables found in the file
"mminit.csh" (see MAPMAKER VERSION 2.0 INSTALLATION AND CONFIGURATION
MANUAL: INITIAL CONFIGURATION).
Once this file has been set up properly by your system administrator, it must be initialized during each user
session. The UNIX "source" command is used to initialize all the environment variables during a session.
Initialization can occur in one of two ways. The user may go to the directory that contains the "mminit.csh"
(commonly "/pathname/mapmaker/exec" where pathname is the directory that MapMaker was installed in)
and type the following line:
or the user may use the absolute path to the "mminit.csh" file (i.e. the hierarchy of directories , starting
at the root, "/", that lead up to the "mminit.csh" file) :
The second method can be used to automatically initialize the "mminit.csh" file upon logging in. Simply add
the given line to the user's .cshrc file in the user's home directory, and all of MapMaker's environment
variables will be initialized after a successful login.
Mmedit is a simple user interface provided with the release of MapMaker. It allows the stand-alone operation of MapMaker. Through mmedit, a user can describe the tailor-made map by choosing from available options and filling in necessary fields. This description is then written to a command file that MapMaker parses to create the map.
There are two ways to launch mmedit from the command line: with options explicitly given, or in an interactive mode with no options. In the interactive mode, MapMaker will automatically run with the options "-vcf" (verbose, clean, and filename ... see OPTIONS in this document).
To run MapMaker from the command line, a user can use the "mmedit" executable file. An executable file
contains compiled computer code, and is used to launch applications. To launch MapMaker using the "mmedit"
executable file, type "mmedit" followed by any desired options (see OPTIONS in this document) and hit enter.
For example, to start a simple interactive mmedit session type:
The first screen you see will ask whether you would like to create a command file, edit an existing command file, or run an existing command file ( see Fig 1.1). If the window that you are running mmedit in is not large enough, you will get the message, "Need larger window to run mmedit". Mmedit needs a screen at least 50 rows by 19 columns to run. A screen smaller than this is too small to allow command file editing. If this is your first mmedit session, choose "create a command file". If there is an existing command file you wish to edit, choose "edit a command file". If there is an existing command file that you wish to run as-is, choose "run a command file".
The following keys perform special functions while mmedit is running:
After an option has been chosen from the command file menu, mmedit will prompt the user for a file name (see Fig 1.2).
_______________________________________________________________________
| |
| **************************************************************** |
| Welcome to MapMaker's User Interface |
| **************************************************************** |
| UP and DOWN arrows to change option |
| (ENTER) to select option |
| (TAB) to finish |
| (SPACEBAR) to start over |
| (ESCAPE) to exit MapMaker (ESCAPE key) |
| |
| Create a command file |
| Edit a command file |
| Run a command file |
| |
| (If you are just beginning choose the first option) |
|______________________________________________________________________|
Fig 1.1 First mmedit screen
________________________________________________________________________
| |
| **************************************************************** |
| Welcome to MapMaker's User Interface |
| **************************************************************** |
| UP and DOWN arrows to change option |
| (ENTER) to select option |
| (TAB) to finish |
| (SPACEBAR) to start over |
| (ESCAPE) to exit MapMaker (ESCAPE key) |
| |
| Input the command file name |
| (this will also be the output filename) |
| |
| -- |
| |
| |
|______________________________________________________________________|
Fig 1.2 Inputting command file name
If the user has chosen to create a command file, this will be used as the command file name and ultimately as the name of the finished map. If the user has chosen one of the other options, mmedit will check for the existence of the command file and either allow the user to edit it, or run it. Notice that the spacebar allows the user to start over and choose a new option. The backspace and delete keys can be used to correct a spelling error or change a file name.
For example, if the user chooses to create a command file and enters the name "Map1", mmedit will create a command file, "Map1.cmd", and the finished map will be called "Map1.jpg" (if the user chose to create a jpeg image), or "Map1.gif" (if the user chose to create a gif image). If the user chose to edit an existing command file named "MarsValles", mmedit would open the file "MarsValles.cmd" and allow the user to edit it (providing "MarsValles.cmd" exists with the proper permissions).
If the user has chosen to create or edit a command file, a second screen will appear that allows the user to edit fields to describe the desired map.
_______________________________________________________________________
| |
| Filename : Map1.cmd |
| |
| UP, DOWN arrows select field |
| (SPACEBAR) will edit field |
| (TAB) will end session |
| (ESC) will exit editor, saving nothing |
| |
| MapMaker Version MM1 |
| Data Set Name mars_viking_bw |
| Scale / Resolution 16.00 pix/degree |
| Output Pixel Type 8 bit |
| Resamp Method Nearest Neighbor |
| Bands 1 |
| Format JPEG |
| Projection Sinusoidal |
| Stretch Auto |
| Limits MinMax |
| Maximum Lat 20.00 |
| Minimum Lat -10.00 |
| Maximum Lon 57.00 |
| Minimum Lon 113.00 |
| Center Lon 100.00 |
| Grid Grid Parameters |
| Lat Reference 10.00 |
| Lat Frequency 10.00 |
| Lon Reference 15.00 |
| Lon Frequency 10.00 |
| |
|______________________________________________________________________|
Fig 1.3 Editing screen
If the display screen is too short to display the entire command file, only a portion of the available
fields will be displayed. The rest of the fields can be reached by scrolling up or down using the
arrow keys. When the editing session is finished, hitting the TAB key will launch MapMaker and create
the map. For a description of each field and available options, see the COMMAND FILE
FIELDS section.
WARNING:
Mmedit will attempt to display any given file as a command file. If mmedit does not recognize the
format of the file, i.e. if it is unable to successfully parse more than ten lines of the file, mmedit
will issue a warning that the given file may not be a command file. Care should be taken when
editing files since the contents of the file are written over at the conclusion of the editing
session (unless the escape key is used). This means that any information contained in a file
will be lost if it is inadvertently used during an mmedit interactive session. If mmedit does not
recognize a file, the user should use the escape key to stop the editing session and verify the file is a
command file (an appropriate text editor can be used to view the file) in order to ensure that important
information will not be lost.
This is a brief description of each of the command file fields that appear in the edit window of mmedit.
| RRRRRR... |
| GGGGGG... |
| BBBBBB... |
| RRRRRR... |
| GGGGGG... |
| BBBBBB... |
| ... |
| RRRRRR... |
| RRRRRR... |
| BBBBBB... |
| BBBBBB... |
| GGGGGG... |
| GGGGGG... |
MapMaker is run from the command line one of three ways, two of which are very similar. As discussed
earlier (see HOW TO RUN MAPMAKER in this document), typing "mmedit"
followed by the options and the command file name at the command prompt launches MapMaker.
A more direct route, bypassing mmedit, can be taken by typing "mmengine" followed by the options and the
command file name. Mmengine is the coordinator that mmedit uses to manage MapMaker, and it can be
accessed directly. For a full description of possible ways to run MapMaker using mmengine and it's components,
read MAPMAKER APPLICATION DEVELOPMENT.
This section lists some of the available options when running MapMaker from the command line, with a
brief description of each. For a complete list of options, read MAPMAKER APPLICATION DEVELOPMENT: PART II: ADVANCED APPLICATION DEVELOPMENT.
Currently there are several global planetary mosaics supported by MapMaker.
If a bug is encountered while using this software, or if positive, helpful, happy suggestions come to mind, please contact one of the following people at the PDS Imaging Node:
Although this program has been used by the United States Geological Survey (USGS), no warranty, expressed or implied, is made by the USGS or the United States Government as to the accuracy and functioning of the program and related program material, nor shall the fact of the distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.