CPCHCF(3NCARG)
β¨ CPCHCF β¨ (that's a 3NCARG moment, from the NCAR GRAPHICS crew, bestie)
okay so real talk: CPCHCF is a little callback routine that Conpack hits up whenever it sniffs out a constant field. The default version? Does literally nothing. Zero. Nada. She's just vibing. But you can write your own version to take the wheel while that constant-field message gets drawn. π
πΈ SYNOPSIS πΈ
CALL CPCHCF (IFLG)
π DESCRIPTION π
IFLG(INTEGER, input) β positive if an action is about to go down, negative if an action has just been completed. The action itself is whatever the absolute value ofIFLGsays it is, like this:- The value 1 implies the determination of the size of the label (by means of a call to
PLCHHQ, in the package Plotchar, withANGD=360.). - The value 2 implies the filling of the box around the label, which is done before the drawing of the label itself.
- The value 3 implies the drawing of the label (by means of a call to
PLCHHQ, in the package Plotchar). - The value 4 implies the drawing of the box around the label, which is done after the drawing of the label itself.
- The value 1 implies the determination of the size of the label (by means of a call to
π¦ USAGE π¦
okay so the #1 rule: you do not call CPCHCF yourself. This routine is not to be called by the user, periodt. Conpack calls it several times while a constant-field label is being drawn. π
The default version of CPCHCF does nothing. A user-supplied replacement may change attributes such as color and line width β by calling the SPPS routine SETUSV or the appropriate GKS routines. β¨
The text of the label being written may be retrieved by means of a
CALL CPGETC ('CTM',CVAL)
The text of the label may be changed by means of a
CALL CPSETC ('CTM',CVAL)
β οΈ and this is the important part, bestie: changing the label text should only be done during a call withIFLG = 1or3β and if you do it for one of those two values, you should also do it for the other. Don't play favorites. π
When CPCHCF is called, the parameter 'ZDV' will have been set to the value of the field; its value may be retrieved and used by CPCHCF. π
π ACCESS π
To use CPCHCF, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order, because we're not chaotic here. π
π₯ SEE ALSO π₯
Online: conpack, cpback, cpchcl, cpchhl, cpchil, cpchll, cpcica, cpclam, cpcldm, cpcldr, cpcltr, cpcnrc, cpdrpl, cpezct, cpgetc, cpgeti, cpgetr, cplbam, cplbdr, cpmpxy, cpmviw, cpmvrw, cppkcl, cppklb, cprect, cprset, cpscae, cpsetc, cpseti, cpsetr, cpsprs, cpsps1, cpsps2, ncarg_cbind
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
and that's the whole page, bestie β straight off a UNIX system, dated March 1993, filed under CPCHCF(3NCARG). iconic, historic, 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