CPGETI(3NCARG)
π CPGETI π β the NCAR Graphics girlies' guide to peeking at your Conpack params
okay so bestie, welcome to CPGETI, a little routine from the NCAR Graphics manual (the 3NCARG girlies know π ). She's giving "quiet overachiever": you ask her for a parameter's value, she hands it over, no drama. Let's get into it π
β¨ NAME β¨
CPGETI β retrieves the integral value of an internal parameter of type INTEGER or REAL.
like she literally just goes and gets the integer for you. iconic behaviour, no notes π«Ά
β¨ SYNOPSIS β¨
CALL CPGETI (PNAM, IVAL)
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_cpgeti (char *pnam, int *ival)
β¨ DESCRIPTION β¨
PNAMβ (CHARACTER, input) the name of the parameter whose integer value you're tryna retrieve. β οΈ only the first three characters ofPNAMget examined, so the rest is basically β¨decorativeβ¨ β but it's recommended you use the rest of the string to make your code readable, because future you is a real one and she deserves clarity. Example: instead of just'LLP', use'LLP - LINE LABEL POSITIONING'. do it for her π₯ΊIVALβ (INTEGER, output) the variable where the value of the parameter named byPNAMgets returned. so:- if the internal parameter is a value
"i"of typeINTEGER, the value returned is"i". easy. - if the internal parameter is a value
"r"of typeREAL, the value returned is"INT(r)". yes bestie, she truncates it. that's the vibe π
- if the internal parameter is a value
β¨ C-BINDING DESCRIPTION β¨
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different language, we love consistency π
β¨ USAGE β¨
This routine lets you retrieve the current value of Conpack parameters. π For a complete list of parameters available in this utility, see the conpack_params man page β she's got the whole menu, iykyk.
β¨ EXAMPLES β¨
Use the ncargex command to see the following relevant examples, bestie β there's a lot of them and they all ate:
ccpcff, ccpclc, ccpcld, ccpcldm, ccpcll, ccpklb, ccplbam, ccplbdr, ccpllb, ccpllc, ccplll, ccpllo, ccpllp, ccpllt, ccpllw, ccppc, ccppc1, ccppc2, ccppc3, ccppc4, ccpkcl, ccprc, ccprwc, ccprwu, ccpscam, colcon, cpex01, cpex02, cpex03, cpex06, cpexcc, vvex01, fcover, ffex03, ffex05.
β¨ ACCESS β¨
To use CPGETI or c_cpgeti, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, don't be chaotic about it π
β¨ MESSAGES β¨
See the conpack man page for a description of all Conpack error messages and/or informational messages. if she's yelling at you, the answers live there π
β¨ SEE ALSO β¨
Online: conpack, conpack_params, cpback, cpchcf, cpchcl, cpchhl, cpchil, cpchll, cpcica, cpclam, cpcldm, cpcldr, cpcltr, cpcnrc, cpdrpl, cpezct, cpgetc, cpgetr, cplbam, cplbdr, cpmpxy, cpmviw, cpmvrw, cppkcl, cppklb, cprect, cprset, cpscae, cpsetc, cpseti, cpsetr, cpsps1, cpsps2, ncarg_cbind
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial
β¨ 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 whole page, bestie β this one came from the NCAR Graphics crew, dated March 1993 on the UNIX side, and she still slays πβ¨ go get those integers, you absolute icon π
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms