Index
Search
Nasa PHT

CONTOUR PLOTS

A General Algorithm for the Construction of Contour Plots


A general computer algorithm has been developed for the construction of contour plots. The algorithm provides for efficient and accurate contouring with a modular approach which allows flexibility in modifying the algorithm for special applications. The algorithm accepts as input data values at a set of points irregularly distributed over a plane. The algorithm is based on an interpolation scheme in which the points in the plane are connected by straight line segments to form a set of triangles. In general, the data is smoothed using a least-squares-error fit of the data to a bivariate polynomial. To construct the contours, interpolation along the edges of the triangles is performed, using the bivariable polynomial if data smoothing was performed. Once the contour points have been located, the contour may be drawn.


Program Size: 1,161 Statements
Computer Language: FORTRAN IV

Copyright (c) 1996 Pacific HiTech, Inc. and COSMIC