CPGETI(3NCARG)

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

πŸ’– 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 of PNAM get 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 by PNAM gets returned. so:
    • if the internal parameter is a value "i" of type INTEGER, the value returned is "i". easy.
    • if the internal parameter is a value "r" of type REAL, the value returned is "INT(r)". yes bestie, she truncates it. that's the vibe πŸ’…

✨ 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 (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