GETUSV(3NCARG)
π GETUSV β bestie edition π
okay so this is GETUSV from the NCAR Graphics crew (the 3NCARG manual, if we're being official β¨), and it's literally just: you ask, it tells you. it's giving "what's the vibe of this internal SPPS parameter rn" and honestly? iconic.
β¨ NAME β¨
GETUSV β grabs the value of one of the internal parameters of SPPS. that's it. that's the whole job. π«Ά
πΈ SYNOPSIS πΈ
CALL GETUSV (VN,IV)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_getusv (char *vn, int *iv)
π DESCRIPTION π
okay so the two args, let's get into it:
VNβ an input constant or variable of typeCHARACTER, and it's the name of a parameter. and listen, only the first two characters are meaningful, so don't be out here writing a whole novel in there. also reminder bestie: in FORTRAN, a constant of typeCHARACTERis just a string of characters wrapped in apostrophes. that's the rule. πIVβ an output variable of typeINTEGER, and it comes back holding the current value of the parameter thatVNpointed at. which parameters, you ask? say less:
the live parameters, in all their glory:
'LS'β Axis scaling (the "Log Scaling" flag). possible values ofIV:1= linear X, linear Y2= linear X, log Y3= log X, linear Y4= log X, log Y
'MI'β Axis direction reversal (the "MIrroring" flag β axis runs from maximum to minimum rather than min to max). possible values ofIV:1= neither X nor Y2= X, but not Y3= Y, but not X4= both X and Y
'MU'β Metacode output Unit. possible value ofIV:2'PB'β Pen-move Buffer size. possible values ofIV:2to50
and now the lore π:
- both
'LS'and'MI'are normally set by calling the routineSET, but lowkey you can also set them independently by callingSETUSV. your call bestie. 'MU'gets set prior to callingOPNGKS, and it changes the FORTRAN logical unit number that GKS uses for metacode output.'PB'sets the size of the SPPS polyline buffer. and heads up: the value"2"effectively turns buffering off. no buffer, no problem. π
the obsolete parameters (aka the throwbacks, retired but still on the roster):
'XF'β X axis exponent for plotter coordinates. (the PAU range would be1to2**XF - 1in X)'YF'β Y axis exponent for plotter coordinates. (the PAU range would be1to2**YF - 1in Y)'IR'β Red color intensity (relative to green and blue)'IG'β Green color intensity (relative to red and blue)'IB'β Blue color intensity (relative to red and green)'IM'β Maximum color index to be used'IN'β Overall color intensity'II'β Restore color index'LW'β Line width scale factor in thousandths (2000means double the default line width)'MS'β Marker size in thousandths (2000means double the default marker size)
more lore, because there's always more:
- the values of
'XF'and'YF'are the same as the values of the argumentsIXandIYin calls to the routinesSETIandGETSI. same energy, different name. β¨ 'IR','IG','IB','IM','IN', and'II'were all part of a color-setting scheme meant to let you set overall intensity independently of color. that scheme is now obsolete β it got replaced by normal GKS color setting through the routinesGSCR,GSPLCI,GSFACI,GSPMCI, andGSTXCI. and if you wanna inquire about current color settings, the corresponding GKS inquiry routines areGQCR,GQPLCI,GQFACI,GQPMCI, andGQTXCI. see Section 6 of "User's Guide for NCAR GKS-0A Graphics." π'LW'is replaced by the GKS line width scale factor routine,GSLWSC, which has the corresponding query functionGQLWSC. glow-up achieved. π'MS'is replaced by the GKS marker size scale factor routine,GSMKSC, which has the corresponding query functionGQMKSC. also glow-up. π
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. no notes. copy-paste energy but make it official. π
β EXAMPLES β
use the ncargex command to see the following relevant examples: (none).
yeah. none. nothing. empty. the void. we simply have no examples for you bestie, go read the other pages. π
π ACCESS π
to use GETUSV or c_getusv, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters, don't fight it. π
π SEE ALSO π
Online: gqcr, gqplci, gqfaci, gqpmci, gqtxci, gqmksc, gqlwsc, spps, spps_params, getset, getsi, plotif, set, setsi, setusv, ncarg_cbind
Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
π 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 page bestie!! π«Ά this lil' slice of NCAR Graphics history comes to you from the UNIX manual, dated March 1993, on the GETUSV(3NCARG) page. yeah it's older than most of us and it still ate. 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