Ngmath example 6
This example can be created using HLU C and FORTRAN library calls or
NCL. It demonstrates how to use the Dsgrid package to do
smoothing in a simple 2D interpolation using a simple inverse distance
weighted interpolation algorithm (Dsgrid is part of the Ngmath library). Tdpack is used to
draw the 3D graphic. The names of the source files for this example
are nm06c.c, nm06f.f, and nm06n.ncl.
Discussion
This module discusses how to use the Dsgrid package using calls
to the Ngmath library and the HLU library.
The HLU C program that generates this plot is
called nm06c.c.
The HLU FORTRAN program that generates this plot is
called nm06f.f.
The NCL script that generates this plot is
called nm06n.ncl.
This plot does not use any external data.
This example can be generated using a C program (nm06c.c), a FORTRAN
program (nm06f.f), or an NCL script (nm06n.ncl). The examples are
installed in the following locations:
- $NCARG_LIB/ncarg/hluex/ngmath/nm06c.c
- $NCARG_LIB/ncarg/hluex/ngmath/nm06f.f
- $NCARG_LIB/ncarg/nclex/ngmath/nm06n.ncl
You can copy this example and run it by typing
"ng4ex nm06c",
"ng4ex nm06f", or "ng4ex nm06n". 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.6 $ $Date: 1999/03/24 17:50:05 $