LBSETR(3NCARG)

LBSETR β€” or, setting real values on Labelbar params πŸ’–

okay bestie, welcome to the NCAR GRAPHICS corner of the universe ✨ this one lives in section 3NCARG and it's genuinely such a useful little thing, no cap.


🌸 NAME 🌸

LBSETR β€” gives a real value to an internal parameter of Labelbar. that's it, that's the whole job, and it does it flawlessly πŸ’…


✨ SYNOPSIS ✨

CALL LBSETR (PNAM, RVAL)

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

#include <ncarg/ncargC.h>

void c_lbsetr (char *pnam, float rval)

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea on the two arguments, listen up 🫢

  • PNAM β€” this one's an input constant or variable of type CHARACTER. it's a string that's three or more characters long, and it has to begin with one of these six character strings: 'CBL', 'CFL', 'CLB', 'WBL', 'WFL', or 'WLB'. like, those are your options, and those are the only options. it's giving very specific, and we respect it for that.
  • RVAL β€” an input expression of type REAL, and it's literally just the desired value of the parameter you're setting. cute, right? BUT β€” plot twist β€” if the internal parameter happens to be of type INTEGER, then the value INT(RVAL) gets handed over to it instead. so it gets truncated on the way in. lowkey important, don't forget it 😭

🌈 C-BINDING DESCRIPTION 🌈

the C-binding argument descriptions are the exact same as the FORTRAN argument descriptions. same energy, different wrapper, slay πŸ’…


πŸŽ€ USAGE πŸŽ€

this routine lets you set the current value of Labelbar parameters. iconic behavior honestly.

and if you want the complete list of parameters available in this utility, go read the labelbar_params man page β€” that's where the full menu lives, bestie πŸ“


⭐ EXAMPLES ⭐

use the ncargex command to see the following relevant examples: cpex05, elblba, and tlblba. go look at them, they're right there, they're waiting for you πŸ‘‘


🧚 ACCESS 🧚

to use LBSETR or c_lbsetr, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” and preferably in that order. don't be chaotic about it, the order matters, i said what i said πŸ’…


πŸ’Œ MESSAGES πŸ’Œ

see the labelbar man page for a description of all Labelbar error messages and/or informational messages. if something's yelling at you, that's where the answers are 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

Online: labelbar, labelbar_params, lbfill, lbgeti, lbgetr, lblbar, lbseti, ncarg_cbind

Hardcopy: NCAR Graphics Fundamentals, UNIX Version


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

ok so like, legally speaking, there's a License Agreement governing the use of this Software, and we are not about to be messy about that. read it, respect it, periodt ✨

and that's the whole page, bestie!! πŸ¦‹ this one's from the UNIX manual, dated March 1993, and it's page LBSETR(3NCARG) β€” you understood it, you ate that, i'm so proud of you πŸ’œπŸŒΈβœ¨