Map

Robert Estalella

Back to the main page

Map. Version 23.04

Description

Map is a simple, interactive program written in Fortran 90, using the PGplot Graphics Subroutine Library to plot maps, in color scale and contours, and annotate them with labels, lines, boxes, arrows, and centered symbols. New versions (starting 22.05) have a graphic interface using the widgets of the DISLIN library (see some examples below). The distribution tar file can be downloaded here.

Requisites

The library has to be installed from the Linux repository. If the library is compiled locally, the program can crash in some computers.  Remove old installations of PGplot and install the library. For an Ubuntu system:

$ sudo apt-get install pgplot5

Mac users can find a guide for installing PGplot on Mac OS X in mingus.as.arizona.edu/~bjw/software/pgplot_fix.html or a local copy of the page pgplot_macosx.

The DISLIN widgets use a  monospace font, specified in the configuration file map.conf.  If necessary, install the packages containing the fonts. For an Ubuntu system:

$ sudo apt-get install xfonts-base xfonts-100dpi

Installation

$ sudo mkdir /usr/local/map

$ sudo mv map.tgz /usr/local/map

$ cd /usr/local/map

$ sudo tar -xzvf map.tgz

$ sudo ./map_compile

In some systems you may need to tune the script map_compile to include the location of the X11, pgplot, or dislin libraries. This can be made by adding the option -L with the folder containing the library. For example,

-L/usr/X11/lib -L/usr/lib

$ sudo ln -s /usr/local/map/map /usr/local/bin/

# map

export MAP_DIR=/usr/local/map

$ map test.map

>>>> Font cannot be loaded!

change the font in the first line of the configuration file  map.conf to another monospace font. Several suggestions are given in the file.  You can also check that the longer help messages fit in the screen. If not, set a lower number in the second line of the configuration file. 

Usage

$ map [<file>.fits|<file>[.map]]

Maptoeps  is a complementary application that reads a map file <file>.map and plots to <file>.eps, without xwin graphic output, so it can be run remotely. Additionally, it can crop the map at any of the four sides of the PGplot window, useful for stacking different maps. 

Usage

  $ maptoeps [-b xXyY|-p|-l|-h] [<file>[.map]]

Options

 -b xXyY: Crop to PGplot box, x= xmin, X= xmax, y=  ymin, Y= ymax. For example, -b yY crops a plot to be stacked vertically. 

 -c xXyY: Same as -b

 -p: Portrait (vertical, default)

 -l: Landscape (horizontal)

 -h: Help

 The extension .map can be omitted.

Examples

Examples of the graphic interface of map:

Main

File

Axes

Intensity

Draw

Boxes

Labels

Lines

 Beam

Overlays

Channels

Analysis

Transform

NaN

Examples of plots made with map: