TDGETI(3NCARG)
π TDGETI β bestie, we're getting a parameter π
okay so this is a page from the NCAR GRAPHICS manual, and it's all about TDGETI(3NCARG) β a little routine that reaches into Tdpack and pulls out an integer for you. it's giving "personal assistant for parameter values" honestly. π«Ά
β¨ NAME β¨
TDGETI β retrieves the integer value of a Tdpack parameter. that's it. that's the whole job. iconic behavior. π
β¨ SYNOPSIS β¨
CALL TDGETI (PNAM,IVAL)
that's the FORTRAN girlies' way in. β¨
β¨ C-BINDING SYNOPSIS β¨
for the C girlies, you gotta include this first:
#include <ncarg/ncargC.h>
and then the call itself looks like:
void c_tdgeti (char *pnam, int *ival)
β¨ DESCRIPTION β¨
so the arguments of TDGETI are literally just these two, and here's the tea on each of them:
PNAMβ an input constant or variable of typeCHARACTER. this is the name of the parameter you want to retrieve. bestie, listen: the character string can be any length, but only the first three characters of it will be examined. so likeβ¦ don't get cute with the extra letters, she's not reading them. πIVALβ an output variable of typeINTEGER. this is the integer variable that receives the desired parameter value. now here's how the handoff works: if the internal parameter is of typeINTEGERand has the value"i", thenIVALwill be given the value"i". but if the internal parameter is of typeREALand has the value"r", thenIVALwill be given the valueINT(r). she converts for you, no cap. π
β¨ C-BINDING DESCRIPTION β¨
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical. same energy, different syntax. π¦
β¨ USAGE β¨
this routine lets you retrieve the current value of Tdpack parameters. that's the whole vibe check. and for a complete list of parameters available in this utility, go look at the "tdpack_params" man page β she has the full menu. π
β¨ ACCESS β¨
to use TDGETI or c_tdgeti, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. yes bestie, order matters, don't do your own thing here. π
β¨ MESSAGES β¨
see the "tdpack" man page for a description of all Tdpack error messages and/or informational messages. everything she has to say lives over there. π
β¨ SEE ALSO β¨
Online: tdclrs, tdctri, tddtri, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs
likeβ¦ the whole friend group showed up. we love a supportive squad. π«Άβ¨
β¨ COPYRIGHT β¨
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay that's the whole page, bestie!! π this was TDGETI(3NCARG) from the NCAR GRAPHICS manual, dated July 1997 on UNIX β and yes, she's still serving after all these years. periodt. π
πΈβ¨
π¦ 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