3.62 CCNTUR Subroutine The CCNTUR subroutine converts the grid of control points into a set of contours and draws the contours and/or fills the surface area between the contour lines with a color pattern. The drawing is made in two dimensions in the area shown in Figure 6 or three dimensions in the area as shown in figure 8. The grid to be contoured ( z) can be generated from random control points using ZGRID or DGRID. The contour levels drawn can be determined by a prior call to ZLEVEL. No contours will be drawn in an area of the grid set to "undefined"(1.0E35). The contours are drawn in two or three dimensions depending on the value of iform in the last call to DISP3D (Section 3.56). This function is similar to ZCNTUR with the addition of the color filled surface patterns. CCNTUR is based on the ACM algorithm 671 (FARB-E-2D) with extensions for bad value processing and 3D representation. Calling Sequence: CALL CCNTUR
( z, nxsize, nysize, nx, ny, xlplot, ylplot, xhplot, Parameters: Parameter Type Value Description z
real
two-dimensional array of control nxsize
integer 3
number of rows in z as dimensioned nysize
integer
3 number
of columns in z as nx
integer 3
number of rows in z that are ny
integer
3
number of columns in z that are
for three-dimensional drawings,
for three-dimensional drawings,
ici*100+ inp Contour is drawn with a solid
-(ici*100+ inp) Contour is drawn as a dashed line This array must be dimensioned (nlev+1) elements.
See STFILL for fill pattern
available for the output device.
icol(i) is used for all data of array z between Note: Each contour level has the following information: For the ith contour level, i = 1 to nlev;
If more than 100 contours are desired on 1 drawing, make multiple calls to CCNTUR, changing the contour levels in zlev each time. See Also: ZGRID, DGRID, DISP3D(3D only), SCAL3D(3D only), ZCSEG, ZCNTUR, CLEGND, examples 4.10 and 4.11. Example: These examples use the following array values. The only difference is the value of the mode parameter (0,1, or 2). NLEV = 5
ZLEV(1) = 11500.0
ICOL(1)= 3
LDIG(1) = 1
LWGT(1) = 1 The output of CCNTUR is shown on the left; the output of CLEGND is shown on the right below.
|