MapPlot example 4

How to add textual annotations to a map

This example can be created using HLU C library calls, HLU FORTRAN library calls, and NCL. It demonstrates how to create annotations on a MapPlot. The name of the example codes that create this plot are mp04c.c, mp04f.f, and mp01n.ncl.

View this animation.

Discussion

This module demonstrates how to create a MapPlot object with annotations for major cities on the globe. The example creates a multiframe sequence that displays as a rotating globe. Resources for this example are set in a resource file called mp04.res.

A detailed discussion of how this example works appears in its source code.

Creating the plot using HLU C library calls

The HLU C program that generates this plot is called mp04c.c.

Creating the plot using HLU FORTRAN library calls

The HLU FORTRAN program that generates this plot is called mp04f.f.

Creating the plot using NCL

The NCL script that generates this plot is called mp04n.ncl.

The data

This plot does not use any external data.

How to run this example

The examples are installed in the following locations:

You can copy this example and run it by typing "ng4ex mp04c", "ng4ex mp04f", or "ng4ex mp04n". A copy of the source file and resource file will be placed in your current working directory. The source code will be compiled and automatically run for you.


Quick Start Guide Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, QSG Contents, QSG WhereAmI?


$Revision: 1.11 $ $Date: 1999/03/23 18:45:12 $