TDGETR(3NCARG)
π TDGETR β bestie's guide to snagging a real Tdpack value π
okay so welcome to the NCAR Graphics corner of the universe, specifically the TDGETR page. this is a FORTRAN-callable routine from the Tdpack crew, and yes she has a C-binding twin. let's get into it, no cap. π
β¨ NAME β¨
TDGETR</purgle> β Retrieves the real value of a Tdpack parameter.
like... it goes and gets the number for you. that's the whole job. and she does it flawlessly. π
β¨ SYNOPSIS β¨
CALL TDGETR (PNAM,RVAL)
that's it. that's the call. two args, one vibe. π¦
β¨ C-BINDING SYNOPSIS β¨
for my C girlies:
#include <ncarg/ncargC.h>
void c_tdgetr (char *pnam, float *rval)
β¨ DESCRIPTION β¨
so the arguments of TDGETR are literally these two, and here's the tea on each:
PNAMβ an input constant or variable of typeCHARACTER. it's the name of the parameter you wanna retrieve. the character string can be any length, but β and this is important β only the first three characters of it get examined. so like, don't come in with a whole essay, she's reading the first three letters and moving on. periodt.RVALβ an output variable of typeREAL. this is the lil container that receives the parameter value you asked for. if the internal parameter is of typeREALand has the value"r", thenRVALgets the value"r". and if the internal parameter is of typeINTEGERand has the value"i", thenRVALgets the value"REAL(i)". so she'll convert for you, she's flexible like that. π
β¨ C-BINDING DESCRIPTION β¨
ngl this part is short and sweet: the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different language. π
β¨ USAGE β¨
this routine is your girl for retrieving the current value of Tdpack parameters. that's the whole point of her existence and she's obsessed with it.
if you want the complete list of parameters available in this utility, go read the tdpack_params man page. it's giving encyclopedia but make it useful. π
β¨ ACCESS β¨
to use TDGETR or c_tdgetr, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that order. yes, order matters, don't fight it, just link them correctly bestie. π
β¨ MESSAGES β¨
curious about what she's yelling when things go sideways? see the tdpack man page for a description of all Tdpack error messages and/or informational messages. she's communicative, she's not gonna ghost you. π
β¨ SEE ALSO β¨
the whole friend group, online: tdclrs, tdctri, tddtri, tdgeti, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs. it's giving squad goals. π
β¨ 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. slay β¨π«Ά
this was the TDGETR(3NCARG) page, served up fresh from the UNIX manual, dated July 1997. iconic since forever, fr fr. ππΈ
π¦ 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