CPPKCL(3NCARG)
π CPPKCL π β the NCAR GRAPHICS page, bestie edition
okay so welcome to CPPKCL, a lil' routine from the NCAR GRAPHICS manual, 3NCARG section. she's here to pick your contour levels for you. no thoughts, just vibes, just math. β¨
β¨ NAME β¨
CPPKCL β Picks a set of contour levels. that's it, that's her whole job. π
πΈ SYNOPSIS πΈ
CALL CPPKCL (ZDAT, RWRK, IWRK)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_cppkcl (float *zdat, float *rwrk, int *iwrk)
π DESCRIPTION π
so here's the tea: all three arguments are arrays that were used in the last call to CPRECT, CPSPS1, or CPSPS2. and like... the contents must NOT have been changed since that call. do not touch. do not breathe on them. hands off. π
ZDATβ (REALarray, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input) is the data array. the actual numbers. the moment. πRWRKβ (REALarray, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input/output) is the real workspace array. she works, she holds reals. π«ΆIWRKβ (INTEGERarray, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input/output) is the integer workspace array. same energy, but integers. π₯
π§ C-BINDING DESCRIPTION π§
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical. matching outfits. π―
π USAGE π
ngl, normally CPPKCL is called by CONPACK when the contour levels are needed. but she can also be called directly by the user when you wanna modify the resulting parameter arrays that specify contour levels and associated quantities in some way. main character behavior. π
CPPKCLmust be called after initialization has been done (by a call to one of the initialization routinesCPRECT,CPSPS1, orCPSPS2); this is becauseCPPKCLdepends on values set during initialization. no init, no levels. periodt.
If the contour-level-selection parameter 'CLS' is zero (meaning the user intends to pick contour levels themselves, iconic, we respect it), or if the constant-field-flag 'CFF' is non-zero (meaning that, during initialization, the data were found to be essentially constant β flat, beige, no notes), then CPPKCL does nothing. she simply does not. π
Otherwise? CPPKCL picks a set of contour levels. β¨ The way in which it picks these levels is determined by the value of the internal parameter 'CLS' β go read the description of this parameter in the conpack_params man page for the full lore. π
When CPPKCL picks contour levels, it sets the value of the internal parameter 'NCL' equal to the number of contour levels picked. Then it sets the values of elements 1 through 'NCL' of the parameter array 'CLV' (contour level values) to the levels chosen. slay. π
The Ith elements of the associated parameter arrays are set as follows:
CLU=1or3β Contour level use flagAIA=I+1β Area identifier above the levelAIB=Iβ Area identifier below the levelLLT=' '(single blank) β Contour line label textCLD='$$$$$$$$$$$$$'β Contour line dash patternCLC=-1β Contour line colorLLC=-1β Contour line label colorCLL=0.β Contour line line width
π so after CPPKCL is called, here's the situation for each contour level π
- Contour lines at the level are to be drawn by calls to
CPCLDMorCPCLDR. ποΈ - The lines will be labeled if
'CLU'=3, but not if'CLU'=1. iykyk. - If
CPCLAMis called, lines at the level will be added to the area map; the area identifiers for areas "above" the level and for areas "below" the level are as specified by'AIA'and'AIB'. πΊοΈ - The dash pattern for the level is solid, and neither the color of the line, the color of the labels on it, nor its width are to be set. unbothered. uncolored. undefined width energy. π
- The text of the label associated with the level is, as yet, unspecified. mystery. a secret. π
By resetting elements in these parameter arrays, the user can change the situation in various ways. go off, customize, make it yours. π
π₯ EXAMPLES π₯
Use the ncargex command to see the following relevant examples:
ccpclcccpcldccpcldmccpcllccpklbccplbamccplbdrccpllbccpllcccplllccplloccpllpccplltccpllwccppcccppc1ccppc2ccppc3ccppc4ccppkclccprcccprwcccpscamcpex01cpex02cpex03cpex06vvex01fcoverffex03ffex05
π ACCESS π
To use CPPKCL or c_cppkcl, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters bestie, don't be chaotic with your link line. β
π MESSAGES π
See the conpack man page for a description of all Conpack error messages and/or informational messages. she will tell you what went wrong. listen to her. π«Ά
πΈ 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, cppklb, cprect, cprset, cpscae, cpsetc, cpseti, cpsetr, cpsps1, cpsps2, ncarg_cbind
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement. π (read it, bestie, it's giving legally binding.)
and that's the whole page!! πβ¨ππ¦πΈπ π«Άππ₯ππβππππ§π
cute sign-off time: this lil' masterpiece is from the UNIX manual, dated March 1993, and its source/version tag is CPPKCL(3NCARG). iconic since '93. no cap. π
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms