WMGETI(3NCARG)

πŸ’– WMGETI β€” the NCAR Graphics bestie that grabs your INTEGER values πŸ’–

okay so this is from the NCAR Graphics manual, page WMGETI(3NCARG), and it's literally the "hey bestie, what's the current value of this internal parameter" routine. It's the INTEGER-flavored one. There's a whole family (c, r, i β€” you'll meet them in SEE ALSO, iykyk) and this is the one you call when the thing you want back is an integer. πŸŽ€


✨ NAME ✨

WMGETI β€” retrieves the integral value of an internal parameter of type INTEGER.

like. it gets you an integer. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

CALL WMGETI (PNAM,IVAL)

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

#include <ncarg/ncargC.h>

void c_wmgeti (char *pnam, int *ival)

πŸ‘‘ DESCRIPTION πŸ‘‘

  • PNAM β€” an input constant or variable of type CHARACTER, and it's the name of the parameter you wanna get. Important, bestie: the name has to appear as the first three characters of the string. Three. Characters. That's the rule. πŸ™ˆ
  • IVAL β€” an output variable of type INTEGER, and it's the variable where the value of the internal parameter named by PNAM gets retrieved into. So you pass it in empty and it comes back with the goods. ✨

🌈 C-BINDING DESCRIPTION 🌈

the C-binding argument descriptions are the same as the FORTRAN argument descriptions. no notes. same energy, different syntax. πŸ’œ


⭐ USAGE ⭐

this routine lets you retrieve the current value of Wmap parameters. that's its whole job and it does it well, no cap. 🫢

for a complete list of parameters available in this utility, go look at the wmap_params man page. (yes, we're linking you to more reading. it's giving academic. πŸ“š)


πŸ”₯ ACCESS πŸ”₯

to use WMGETI or c_wmgeti, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. don't get cute with the order, okay? 😭


πŸ’€ SEE ALSO πŸ’€

Online:

  • wmap
  • wmdflt
  • wmgetc
  • wmgetr
  • wmlabs
  • wmsetc
  • wmseti
  • wmsetr
  • wmap_params

Hardcopy:

  • WMAP - A Package for Producing Daily Weather Maps and Plotting Station Model Data

(the whole squad. the getters, the setters, the defaults, the labs. iconic lineup fr fr 🌟)


Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


not me ending a manpage with legal text but like, we have to. it's the rules. πŸ’…

and that's the whole page, bestie β€” you now know exactly how to pull an INTEGER out of Wmap and you did it without crying. main character energy. periodt. πŸŽ€βœ¨

this little love letter to WMGETI came from the UNIX manual, dated January 1995, page WMGETI(3NCARG) β€” slay forever, king. πŸ‘‘πŸ¦‹