MapPlot example 4

How to add textual annotations to a map

This example demonstrates how to create annotations on a MapPlot using HLU C and HLU FORTRAN library calls. The name of the example codes that create this plot are mp04c.c and mp04f.f.

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

Currently, the NCL script for this example has not been written.

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" or "ng4ex mp04f". A copy of the source file, resource file, and Makefile 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 Home, Index, Examples, Glossary, Feedback, QSG Contents, QSG WhereAmI?


$Revision: 1.6 $ $Date: 1995/07/26 23:25:11 $