CPDRPL(3NCARG)
π CPDRPL β the polyline drawer bestie π
okay so hi bestie!! welcome to the NCAR GRAPHICS manual, and specifically to CPDRPL, which is a genuinely useful little polyline-drawer made for its bff routine CPCLDM. that's the whole vibe. let's get into it π
β¨ NAME β¨
CPDRPL β Provides a useful polyline-drawer for the routine CPCLDM.
like. that's it. that's the job. it draws polylines. and it does it for CPCLDM. iconic behaviour honestly π«Ά
πΈ SYNOPSIS πΈ
CALL CPDRPL (XCS, YCS, NCS, IAI, IAG, NAI)
six arguments, no cap. that's the whole call. go off β
π¦ DESCRIPTION π¦
okay so here's what every single one of those arguments actually is, because the way that a manpage lists arguments is lowkey a whole vibe and we're not skipping a single one:
XCSβ aREALarray of dimension at leastNCS, and it's an input. it holds the X coordinates of theNCSpoints that define a polyline. πYCSβ aREALarray of dimension at leastNCS, also an input. it holds the Y coordinates of those sameNCSpoints defining the polyline. so like,XCSandYCSare a matched set, they're giving power couple fr fr πNCSβ anINTEGER, input. it's the number of points defining the polyline. so it's the count. the how-many. πIAIβ anINTEGERarray of dimension at leastNAI, input. it's an array of area identifiers for the area in which the polyline lies. and for eachIfrom1toNAI,IAI(I)is the area identifier of the area with respect to the edge groupIAG(I). yes,IAIandIAGare paired up index by index, they're literally holding hands. πIAGβ anINTEGERarray of dimension at leastNAI, input. it's an array of group identifiers. and bestie, just go read the description ofIAIabove, because they're the same shape, same length, same energy, different job. πNAIβ anINTEGER, input. it's the number of area identifiers in the arrayIAI, and also the number of group identifiers in the arrayIAG. one number, two arrays, that's the deal. π
π§ USAGE π§
okay so here's the actual situation. if you're calling CPCLDM, and the only reason you're using it instead of CPCLDR to draw contour lines is to avoid drawing the lines through labels β like, that's your whole motivation, nothing else β then here's what you do:
in the routine which calls CPCLDM, put the declaration
EXTERNAL CPDRPL
and then, in the call to CPCLDM, use CPDRPL for the argument RTPL. that's it. that's the swap. π₯
and every single time CPDRPL is called, it draws the polyline defined by its first three arguments if, and only if, none of the area identifiers defined by the other three arguments is negative.
if, and only if β like, that's not a suggestion, that's the condition. one negative area identifier and the polyline is simply not happening. vibe check failed, no drawing for you π
π« ACCESS π«
to use CPDRPL, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that order, bestie, the order is not a suggestion π
β SEE ALSO β
π» Online
conpack, cpback, cpchcf, cpchcl, cpchhl, cpchil, cpchll, cpcica, cpclam, cpcldm, cpcldr, cpcltr, cpcnrc, cpezct, cpgetc, cpgeti, cpgetr, cplbam, cplbdr, cpmpxy, cpmviw, cpmvrw, cppkcl, cppklb, cprect, cprset, cpscae, cpsetc, cpseti, cpsetr, cpsps1, cpsps2, ncarg_cbind
that's the whole squad, no one left behind, we love a complete list π«Ά
π Hardcopy
NCAR Graphics Contouring and Mapping Tutorial
yes it's a real document, yes you can read it, yes it's giving study session energy π
πΈ COPYRIGHT πΈ
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
like, legally speaking, that's the whole thing, don't skip it bestie π
okay so that's CPDRPL, page CPDRPL(3NCARG) out of the NCAR GRAPHICS manual on UNIX, dated March 1993 β yes she's vintage, yes she still ate, no notes. mwah, go draw some polylines π
β¨
π¦ 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