ncl_cppklb - Man Page

Picks a set of labels for labeled contour levels.

Synopsis

CALL CPPKLB (ZDAT, RWRK, IWRK)

C-Binding Synopsis

#include <ncarg/ncargC.h>

void c_cppklb (float *zdat, float *rwrk, int *iwrk)

Description

All three arguments are arrays used in the last call to  CPRECT, CPSPS1, or CPSPS2, the contents of which must not  have been changed since that call.

ZDAT

(REAL array, dimensioned as specified in the last call  to CPRECT, CPSPS1, or CPSPS2, input) is the data array.

RWRK

(REAL array, dimensioned as specified in the last call  to CPRECT, CPSPS1, or CPSPS2, input/output) is the real  workspace array.

IWRK

(INTEGER array, dimensioned as specified in the last  call to CPRECT, CPSPS1, or CPSPS2, input/output) is the  integer workspace array.

C-Binding Description

The C-binding argument descriptions are the same as the FORTRAN argument descriptions.

Usage

Normally, CPPKLB is called by Conpack when labels for the contour levels are needed.  You can call CPPKLB directly (after the initialization call to CPRECT, CPSPS1 or CPSPS2) when you want to modify the resulting parameter arrays that specify the labels.

If the constant-field-flag 'CFF' is non-zero, indicating that, during the last call to CPRECT, CPSPS1, or CPSPS2, the data were found to be essentially constant, CPPKLB does nothing. Otherwise, CPPKLB examines the first 'NCL' elements of the parameter array 'CLV', which defines the contour levels, and the associated parameter arrays, looking for levels that are to be labeled ('CLU' = 2 or 3) for which no label is specified (the associated element of 'LLT' is ' ', a single blank.) If any such levels are found, labels are generated for them.

The scale factor 'SFU' may be set as a byproduct of choosing the labels.  See the description of the parameters 'SFU' (scale factor used) and 'SFS' (scale factor selector) in the  conpack_params man page.

After calling CPPKLB, a user program may examine the generated labels and change them in various ways.

Examples

Use the ncargex command to see the following relevant example: ccpklb.

Access

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

Messages

See the conpack man page for a description of all Conpack error messages and/or informational messages.

See Also

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, cprect, cprset, cpscae, cpsetc, cpseti, cpsetr, cpsps1, cpsps2, ncarg_cbind

Hardcopy: NCAR Graphics Contouring and Mapping Tutorial

Info

March 1993 UNIX NCAR GRAPHICS