VectorPlot example 8
This example can be created using HLU function calls or NCL. It plots
wind vectors at a grid stride of 3 and colors them according to wind
speed. The names of the source files for this example are vc08c.c,
vc08f.f, and vc08n.ncl.
Discussion
This module discusses how to create this plot using NCL or HLU C or
FORTRAN calls. A resource file is not included with this example. A
detailed discussion of how this example works appears in its source
code.
The HLU C program that generates this plot is called vc08c.c.
The HLU FORTRAN program that generates this plot is called vc08f.f.
The NCL script that generates this plot is
called vc08n.ncl.
The data for this plot is from a netCDF file (created by NCL) called
ex01B1_uv300.hs.nc
The data file is located in your NCAR Graphics data directory in a
subdirectory called "cdf". You can get the name of the data directory
by typing "ncargpath data" at your shell prompt. If you have netCDF
installed on your system, then you can change directory to where the
netCDF file resides and type "ncdump -h ex01B1_uv300.hs.nc" to view the
header information for this data file.
This example can be created using a C program (vc08c.c), a FORTRAN
program (vc08f.f), or an NCL script (vc08n.ncl). The example is
installed in the following locations:
- $NCARG_LIB/ncarg/hluex/vectorplot/vc08c.c
- $NCARG_LIB/ncarg/hluex/vectorplot/vc08f.f
- $NCARG_LIB/ncarg/nclex/vectorplot/vc08n.ncl
The netCDF data file is installed in the following location:
- $NCARG_LIB/ncarg/data/cdf/ex01B1_uv300.hs.nc
You can copy this example and run it by typing "ng4ex vc08c", "ng4ex
vc08f", or "ng4ex vc08n". A copy of the source file and resource file
will be placed in your current working directory. The source code will
be automatically compiled, linked, and 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.5 $ $Date: 1999/03/23 21:07:12 $