CPLBDR(3NCARG)
β¨ CPLBDR β¨ (from the NCAR GRAPHICS girlies π )
okay bestie, sit down, hydrate, because today we're talking about CPLBDR, a lil routine from the NCAR GRAPHICS manual that draws labels. like... all the labels. the informational label, the high and low labels, AND the contour line labels. it's giving "one function, every label, no crumbs." π
πΈ NAME πΈ
CPLBDR β draws labels (an informational label, high and low labels, and line labels).
no cap, that's the whole job. it labels. she's a labeler. π
π¦ SYNOPSIS π¦
CALL CPLBDR (ZDAT, RWRK, IWRK)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_cplbdr (float *zdat, float *rwk, int *iwrk)
wait bestie, let me redo that one exactly as the page says:
#include <ncarg/ncargC.h>
void c_cplbdr (float *zdat, float *rwrk, int *iwrk)
there we go. C girlies, you're covered too. π
π DESCRIPTION π
okay so all three arguments are arrays that got used in the last call to CPRECT, CPSPS1, or CPSPS2 β and here's the tea: their contents must not have been changed since that call. like, do not touch. do not breathe on them. they are frozen in time, iconic, untouchable. π
ZDATβ (REAL array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input) is the data array. the actual data. the moment. β¨RWRKβ (REAL array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input/output) is the real workspace array. it goes in, it comes out, it's a whole journey. π«ΆIWRKβ (INTEGER array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input/output) is the integer workspace array. same energy, but with integers. π
π§ C-BINDING DESCRIPTION π§
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical. no notes. periodt. π
π USAGE π
CPLBDR may be called at any time after the initialization call to CPRECT, CPSPS1, or CPSPS2. whenever you want, bestie, she's ready.
BUT β plot twist β if, during the last call to CPRECT, CPSPS1, or CPSPS2, the data being contoured were found to be essentially constant, then the constant-field label is drawn. that's it. that's the whole drawing. flat data, flat vibes, one label. π
otherwise? otherwise we're in business, and the information label, the high and low labels, and/or the contour line labels get drawn, as follows:
- the information label is drawn only if the parameter
'ILT', which specifies the text of that label, is not blank. - high labels are drawn only if the parameter
'HIT', which specifies the text of those labels, is not blank. - low labels are drawn only if the parameter
'LOT', which specifies the text of those labels, is not blank. - contour line labels are drawn only if the parameter
'LLP', which specifies how those labels are to be positioned, has an absolute value of2or3, AND if, for someIbetween1and'NCL'inclusive, theIth element of the parameter array'CLU'has a value implying that contour lines at the contour level specified by theIth element of'CLV'are to be labeled.
so yeah. blank text = no label. she's not drawing empty nothing for you. and the line labels need 'LLP' at 2 or 3 in absolute value, plus the whole 'CLU' / 'CLV' situation lining up. iykyk. π₯
π EXAMPLES π
use the ncargex command to see the following relevant examples:
ccpcff, ccpcfx, ccpcldm, ccpfil, ccphl, ccphlt, ccpila, ccpils, ccpilt, ccplbam, ccplbdr, ccpllb, ccpllc, ccplll, ccpllo, ccpllp, ccpllt, ccpllw, ccpnet, ccpnof, ccpnsd, ccppc, ccppc1, ccppc2, ccppc3, ccppc4, ccprc, ccpscam, colcon, cpex01, cpex02, cpex03, cpex04, cpex06, cbex01, vvex01, fcover, ffex03, ffex05.
that's a LOT of examples and yes, they are all listed, because we do not gatekeep in this house. π
β ACCESS β
to use CPLBDR or c_cplbdr, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, bestie, it's not a vibe suggestion. π
π MESSAGES π
see the conpack man page for a description of all Conpack error messages and/or informational messages. if she's yelling at you, that's where the translation lives. π
π SEE ALSO π
Online: conpack, cpback, cpchcf, cpchcl, cpchhl, cpchil, cpchll, cpcica, cpclam, cpcldm, cpcldr, cpcltr, cpcnrc, cpdrpl, cpezct, cpgetc, cpgeti, cpgetr, cplbam, cpmpxy, cpmviw, cpmvrw, cppkcl, cppklb, cprect, cprset, cpscae, cpsetc, cpseti, cpsetr, cpsps1, cpsps2, ncarg_cbind
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial
go read the tutorial, it's lowkey the lore. π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
like, legally speaking, respect the license. π
okay that's the whole page bestie, you ate, go draw some labels. this was CPLBDR(3NCARG) from the UNIX manual, NCAR GRAPHICS edition, dated March 1993 β yes she's vintage, yes she still slays, and no, we're not changing a single character of her. mwah. π
β¨π¦
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms