This module contains source codes for Shgrid examples.
The following list summarizes the examples:
- Example 1 -- find nearest points to a given point in 3-space
- Example 2 -- create an ellipsoidal isosurface
- Example 3 -- create a tube-shaped isosurface
The plotting subroutines used by the Fortran, C and NCL examples use
NCAR Graphics.
If you are not using NCAR Graphics and want to
draw the plots, you will have to substitute appropriate calls from
the graphics package you are using.
If you have access to NCAR Graphics, you can create executables for
all of the Fortran and C examples in one of two ways. The easiest is to
use the ncargex
utility,
which is documented with a man page. The other way is to use either
ncargf77
(for Fortran) or
ncargcc
(for C) to compile and execute the source codes.
If you are using NCAR
Graphics and the C interface to Shgrid and
you are compiling using ncargcc, then
function prototypes for all
Shgrid C functions are contained in a C header file. This can be accessed
by inserting the line:
#include <ncarg/ngmath.h>
into your code.
If you are using NCAR Graphics, you can run all of the NCL examples
for Shgrid using the ng4ex utility. The NCL examples
utilize GSUN functions.
Example 1 -- find nearest points to a given point in 3-space.
Example 2 -- create an ellipsoidal isosurface.
Example 3 -- create a tube-shaped isosurface.
home |
contents |
defs |
procedures |
examples |
errors