Back to the main page
Map. Version 2017/07. Robert Estalella
Map is a simple, interactive, menu-driven program, based on the
Graphics Subroutine Library, to plot maps, in color-scale and contours, and
annotate them with labels, lines, boxes, arrows, and centered symbols.
- Reads/writes images in FITS, ASCII, and binary formats.
- Up to two overlay images (in FITS format) can be drawn with contour
- Can take the axes scale from the header of the FITS files.
- Plots can be saved in (and retrieved from) an ASCII file
fully commented. The map file can be edited to fine tune the plot (see an
example of a
- The graphic output is in form of an eps file, map.eps (A4 landscape
or portrait, or a custom size from A6 to A0).
- Map limits, position of objects, boxes, etc, can be set with the mouse, or
entered as coordinates with the keyboard.
- All positions can be given in pixels or world coordinates.
- Three different palettes for color scale: gray, flame, rainbow.
- User defined objects that can be drawn onto the plot: rectangular boxes,
arrows (with an optional error ellipse at its tip), centered symbols, labels,
multipoint lines. The style (size, linewidth, line style, color, background
color) of each object can be set.
- Image analysis available: read and show map positions; peak position
estimate; box, polygonal region, rings statistics; map seeing estimate; Gaussian
smoothing; 2D Gaussian fitting; slices.
- FITS data cubes maps: plot of channels maps, plot of spectra at any
pixel, moment calculation and plot.
- Help available for each menu and
- Download the tar file map.tgz and untar it in
your installation directory, for instance /usr/local/map
$ sudo mkdir /usr/local/map
$ sudo mv map.tgz /usr/local/map
$ cd /usr/local/map
$ sudo tar -xzvf map.tgz
- Run the script map_compile
$ sudo ./map_compile
Mac users may need to tune the script map_compile to include the
location of the pgplot and X11 libraries. This can be made by adding the
- Make a symbolic link to the executable from a directory in your path, for
$ sudo ln -s /usr/local/map/map /usr/local/bin/
- Define the environment variable MAP_DIR, pointing to your
installation directory. It is used by map to find the help file
map_help.txt. This can be done by adding to your .bashrc or
.bash_profile the following lines:
- You can customize PGplot by adding the following lines to your
# PGplot installation directory
# Default xwindow device
# Default black foreground
# Default white background
# Marks text written in the ps file so it can be be edited
- In addition, you may want to have an xwindow with 256 colors, and make the
server window not visible. This can be done by starting the
pgxwin_server with these options:
/usr/local/pgplot/pgxwin_server -win_maxColors 256 -server_visible False
This line can be added to your .bash_profile.
Examples of plots made with map: