logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CPPKLB - Picks a set of labels for labeled contour levels.

Access

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

C-Binding Description

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

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.

Examples

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

Messages

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

Name

       CPPKLB - Picks a set of labels for labeled contour levels.

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

Synopsis

       CALL CPPKLB (ZDAT, RWRK, IWRK)

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.

See Also