PCGETI(3NCARG)
π PCGETI β bestie edition π
okay so this is PCGETI from the NCAR GRAPHICS manual, section 3NCARG, and it's genuinely one of the most useful little gremlins in the whole Plotchar toolbox. she's here to hand you back a number. that's it. that's the job. but she does it SO well. π
β¨ NAME β¨
PCGETI β retrieves the integral value of an internal parameter of type INTEGER or REAL. π«Ά
β¨ SYNOPSIS β¨
CALL PCGETI (PNAM,IVAL)
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_pcgeti (char *pnam, int *ival)
β¨ DESCRIPTION β¨
PNAMβ an input constant or variable of typeCHARACTER, and she's the one who says which parameter you're getting. the name has to show up as the first two characters of the string, no cap. now, if the internal parameter happens to be one of the two that are arrays (Β΄BCΒ΄andΒ΄CCΒ΄), then the index of the array element you want can go in columns 3 and following, wrapped in parentheses. and here's the cute part: you can put literally anything else after that to document what you're doing, she does not care. so instead of justΒ΄MAΒ΄, you could writeΒ΄MA - MAPPING FLAGΒ΄, and instead ofΒ΄CC(10)Β΄you could writeΒ΄CC(10) - SPECIAL COLOR 10Β΄. it's giving self-documenting code. we love her for that. πIVALβ an output variable of typeINTEGER, aka the lil bucket where the value of the internal parameter named byPNAMlands. and here's the math, bestie: if the internal parameter is a value"i"of typeINTEGER, then the value returned is"i". if the internal parameter is a value"r"of typeREAL, then the value returned isINT(r). so either way you're walking away with an integer. periodt. πΈ
β¨ C-BINDING DESCRIPTION β¨
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. like, identical. same energy, different language. β¨
β¨ USAGE β¨
this routine is your girl for pulling the current value of Plotchar parameters. and if you want the whole entire list of parameters that live in this utility, go read the plotchar_params man page. she's got the receipts. π
β¨ EXAMPLES β¨
use the ncargex command to see the following relevant examples: cpexcc, vvexcc. go look at them, they're right there. π¦
β¨ ACCESS β¨
to use PCGETI or c_pcgeti, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that order, okay? order matters, bestie. don't do it out of order, that's not the vibe. π₯
β¨ SEE ALSO β¨
Online: plotchar, plotchar_params, pcdlsc, pcgetc, pcgetr, pchiqu, pcloqu, pcmequ, pcmpxy, pcpnwi, pcrset, pcsetc, pcseti, pcsetr, ncarg_cbind.
Hardcopy: NCAR Graphics Fundamentals, UNIX Version. yes, paper. iconic. π
β¨ COPYRIGHT β¨
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay and for the lil sign-off moment π β this page is a UNIX manual page, dated March 1993, and it lives at PCGETI(3NCARG). yes she's been serving since 1993 and she still eats. mwah. πβ¨π
π¦ 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