PCGETR(3NCARG)
π PCGETR β it's giving "grab the real value" energy π
okay bestie, so this is a page from NCAR GRAPHICS, and it's all about PCGETR, a little routine that goes and fetches the real value of an internal parameter. lowkey essential, no cap. π
β¨ NAME β¨
PCGETR β she retrieves the real value of an internal parameter of type REAL or INTEGER. that's it, that's the whole job, and she does it flawlessly. π
β¨ SYNOPSIS β¨
CALL PCGETR (PNAM,RVAL)
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_pcgetr (char *pnam, float *rval)
πΈ DESCRIPTION πΈ
PNAMβ an input expression of type CHARACTER, and she specifies the name of the parameter you wanna get. the name has to show up as the first two characters of the string, periodt. and here's the cute part: if the internal parameter is one of the two that are arrays β those would be'BC'and'CC'β then the index of the array element you want can appear, wrapped in parentheses, starting in columns 3 and following. also you can totally use extra characters to document what the parameter is for, iykyk. like, instead of just'MA', you can write'MA - MAPPING FLAG', and instead of'CC(10)', you can write'CC(10) - SPECIAL COLOR 10'. cute, self-documenting, we love to see it. π¦RVALβ an output variable of type REAL. this is the name of the variable where the value of the internal parameter specified byPNAMgets dropped off. and here's the tea: if the internal parameter is a value"r"of type REAL, then the value returned is"r". but if the internal parameter is a value"i"of type INTEGER, then the value returned is"REAL(i)". yes, she converts. icon behavior. β¨
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. no notes, they just match. π
π USAGE π
this routine lets you retrieve the current value of Plotchar parameters. that's the whole vibe.
for a complete list of parameters available in this utility, go see the plotchar_params man page. seriously, go look, she has the full menu. π
π EXAMPLES π
use the ncargex command to see the following relevant examples, bestie:
cpexccepltchvvexccfpchiqu
β ACCESS β
to use PCGETR or c_pcgetr, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that order. don't fight the order, she knows what she's doing. π
π MESSAGES π
see the plotchar man page for a description of all Plotchar error messages and/or informational messages. every single one. go read. π«Ά
π§ SEE ALSO π§
Online:
plotcharplotchar_paramspcdlscpcgetcpcgetipchiqupcloqupcmequpcmpxypcpnwipcrsetpcsetcpcsetipcsetrncarg_cbind
Hardcopy:
- NCAR Graphics Fundamentals, UNIX Version
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
fr fr, that license line is not a joke β the use of this Software is governed by a License Agreement. read it, bestie. π
okay that's the whole page, and ngl she ate. this came straight out of the UNIX manual, dated March 1993, filed under PCGETR(3NCARG) in the NCAR GRAPHICS collection. 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