XyPlot example 10
This example can be created using HLU C library calls, HLU FORTRAN
library calls, or NCL. This example demonstrates how to
overlay an XyPlot on a MapPlot.
The names of the source files for this example are xy10c.c, xy10f.f, and
This module discusses how to create this plot using HLU function
calls and NCL. A resource file is included with this example, and it is
called xy10.res. This file is
used to change the default resource settings for the plot.
This example plots station locations over maps of the United States
and the world. Polymarkers are used to indicate the location of
station data. A more detailed discussion of how this example works
appears in the comments of the source code.
The HLU C program that generates this plot is called
The HLU FORTRAN program that generates this plot is called
The NCL script that generates this plot is called
The data for this plot is read from a netCDF file called
95031800_sao.cdf. This data is installed in your NCAR Graphics data
directory. The location of this directory can be obtained by typing
"ncargpath data". This is a netCDF file, so you can use the netCDF
utility, ncdump, to view the header information for this file. Type
"ncdump -h 95031800_sao.cdf" to view the set of variables and
attributes that are stored in this file.
You can produce this example by using a C program (xy10c.c),
a FORTRAN program (xy10f.f), or an NCL script (xy10n.ncl). The examples
are installed in the following locations:
The resource file for this example is located in:
The netCDF data file is installed in the following location:
You can copy this example and run it by typing "ng4ex xy10c", "ng4ex
xy10f", or "ng4ex xy10n". 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. You must have the netCDF library
installed on your system in order to compile the C or FORTRAN version
of this example.
Quick Start Guide Control Panel
NG4.1 Home, Index, Examples, Glossary, Feedback, QSG Contents, QSG WhereAmI?
$Revision: 1.8 $ $Date: 1999/03/23 21:15:24 $