PCPNWI(3NCARG)
π NAME π
PCPNWI β bestie, it's a function of type CHARACTER*16. that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
CHARACTER*16 PCPNWI,ENAM
ENAM = PCPNWI (PNAM,IPAI)
like yes she's short but she SERVES π
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_pcpnwi (char *pnam, int *ipai)
β¨ DESCRIPTION β¨
okay so here's the tea, and there are exactly two (2) things you hand her:
PNAMβ an input constant or variable of typeCHARACTER. it's a character string, and the first two characters of it are the name of an internal parameter array of Plotchar. currently that's'BC'or'CC'. that's it, just the first two, she doesn't need the rest of the string fr fr.IPAIβ an input expression of typeINTEGER. it says which index of that internal parameter array you want the name of. the index. the one you're pointing at. π
so given those two, the value of PCPNWI(PNAM,IPAI) is that character string which serves as the name of element IPAI of the internal parameter array identified by PNAM. it's literally a name-generator. she makes names. iconic behavior. π
for example, if IPAI has the value 3, then the value of "PCPNWI('CC',IPAI)" is the character string 'CC(3)' (padded with blanks to the right π«Ά), and the call:
CALL PCSETI (PCPNWI('CC',IPAI),62)
would give the value 62 to the third element of the parameter array 'CC'. see how that works?? she built you the name CC(3) and you fed it straight into PCSETI. chef's kiss. ππ
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different language, no notes. β¨
π USAGE π
this routine generates parameter names for use in calls to other routines. that's her whole job and she does it flawlessly.
for a complete list of parameters available in this utility, see the plotchar_params man page. go look, bestie, it's all there. π
π ACCESS π
to use PCPNWI or c_pcpnwi, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. don't be chaotic about the order, the order matters, iykyk. π§
π MESSAGES π
see the plotchar page for a description of all Plotchar error messages and/or informational messages. if she's yelling at you, that's where the translation lives. no cap.
π SEE ALSO π
Online: plotchar, plotchar_params, pcdlsc, pcgetc, pcgeti, pcgetr, pchiqu, pcloqu, pcmequ, pcmpxy, pcrset, pcsetc, pcseti, pcsetr, ncarg_cbind.
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
the whole friend group, honestly. π
π 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 page!! this was the PCPNWI(3NCARG) manual page from the UNIX manual, dated March 1993, part of the NCAR Graphics collection β tysm for reading, bestie, go forth and generate those parameter names πβ¨ππ¦πΈ
π¦ 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