DOKK / manpages / debian 12 / libncarg-dev / cprect.3ncarg.en
CPRECT(3NCARG) NCAR GRAPHICS CPRECT(3NCARG)

CPRECT - Initializes the contouring of a rectangular array of data.

CALL CPRECT (ZDAT, KZDT, MZDT, NZDT, RWRK, LRWK, IWRK, LIWK)

#include <ncarg/ncargC.h>

void c_cprect (float *zdat, int kzdt, int mzdt, int nzdt,
float *rwrk, int lrwk, int *iwrk, int liwk)

(REAL array, dimensioned KZDT x n, where "n" is greater than or equal to NZDT, input) is the array of data to be contoured.
(INTEGER, input) is the first dimension of the array ZDAT.
(INTEGER, input) is the first dimension of the array of data in ZDAT. MZDT must be less than or equal to KZDT.
(INTEGER, input) is the second dimension of the array of data in ZDAT. NZDT must be less than or equal to the declared second dimension of the array ZDAT.
(REAL array, dimensioned LRWK, input/output) is the real work array.
(INTEGER, input) is the length of RWRK.
(INTEGER array, dimensioned LIWK, input/output) is the integer work array.
(INTEGER, input) is the length of IWRK.

The C-binding argument descriptions are the same as the FORTRAN argument descriptions with the following exceptions:

zdat is dimensioned l by kzdt, where l ≥ nzdt.
The second dimension of the array zdat.
The second dimension of the array of data in zdat. mzdt ≤ kzdt.
The first dimension of the array of data in zdat. nzdt ≤ l, where l is the declared first dimension of the array zdat.

The routine CPRECT is called to initialize the process of drawing a contour plot from a rectangular array of data. The arguments define the data array, a real workspace array, and an integer workspace array. The dimensions of all the arrays are transferred to variables in COMMON, so that, in calls to other Conpack routines, those dimensions may be omitted.

CPRECT initializes the internal pointers that manage workspace use; also, it decides the appropriate ranges of X and Y coordinates for drawing contour lines and positioning labels.

If Conpack is to call SET, appropriate arguments are determined and SET is called; otherwise, GETSET is called to retrieve the arguments from the user's call to SET.

The list of label positions (if any) left over from previous calls to the package is discarded.

If contour levels are to be chosen by Conpack, 'NCL' is zeroed so that the levels will be chosen when they are needed.

The minimum and maximum values in the data array are located and it is decided whether the data are essentially constant.

Numeric-label parameters that depend on the range of values in the data array are initialized.

A scale factor may be chosen.

Use the ncargex command to see the following relevant examples: caredg, ccpback, ccpcff, ccpcfx, ccpcica, ccpci, ccpcis, ccpcit, ccpclc, ccpcld, ccpcldm, ccpcldr, ccpcll, ccpclu, ccpdflt, ccpfil, ccpga, ccphand, ccphcf, ccphl, ccphlt, ccpila, ccpils, ccpilt, ccpklb, ccplbam, ccplbdr, ccpllb, ccpllc, ccplll, ccpllo, ccpllp, ccpllt, ccpmap, ccpmovi, ccpmpxy, ccpncls, ccpnet, ccpnof, ccpnsd, ccppc, ccppc1, ccppc2, ccppc3, ccppc4, ccppkcl, ccppole, ccprc, ccprect, ccprwc, ccprwu, ccpscam, ccpset, ccpspv, ccpt2d, ccptitle, ccpvp, ccpvs, cidsfft, colcon, cpex01, cpex02, cpex03, cpex04, cpex05, cpex06, cpex07, cpex08, cbex01, vvex01, tconpa, fcover, ffex03, ffex05, fsfsgfa.

To use CPRECT or c_cprect, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.

Online: conpack, cpback, cpchcf, cpchcl, cpchhl, cpchil, cpchll, cpcica, cpclam, cpcldm, cpcldr, cpcltr, cpcnrc, cpdrpl, cpezct, cpgetc, cpgeti, cpgetr, cplbam, cplbdr, cpmpxy, cpmviw, cpmvrw, cppkcl, cppklb, cprset, cpscae, cpsetc, cpseti, cpsetr, cpsps1, cpsps2, ncarg_cbind

Hardcopy: NCAR Graphics Contouring and Mapping Tutorial

Copyright (C) 1987-2009
University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.

March 1993 UNIX