PCPNWI(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– 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 type CHARACTER. 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 type INTEGER. 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 (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