CPSETR(3NCARG)
β¨ CPSETR (from the NCAR GRAPHICS era, bestie) β¨
okay so literally the whole vibe of this page is: it's a Fortran routine from NCAR Graphics, it lives in section 3NCARG, and it's about setting ONE real-or-integer parameter. that's it. that's the girl. π
π NAME π
CPSETR β sets the value of an internal parameter of type REAL or INTEGER. yes she does both, she's versatile like that π«Ά
πΈ SYNOPSIS πΈ
CALL CPSETR (PNAM, RVAL)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_cpsetr (char *pnam, float rval)
π DESCRIPTION π
okay so here are the two little arguments, and yes they both matter:
PNAMβ (CHARACTER, input) this is the name of the parameter you're about to give a real value to. and here's the tea: only the first three characters ofPNAMare examined. the rest? purely for aesthetics (and, like, code readability, which honestly is aesthetics). so instead of just writing'CIS', the recommendation is to go full main character and write'CIS - CONTOUR INTERVAL SPECIFIER'. slay. πRVALβ (REAL, input) this is an expression, and its value is what gets handed over to whatever parameterPNAMpointed at. and here's the plot twist π«’: if the internal parameter is of type REAL, it just getsRVALstraight up. but if the internal parameter is of type INTEGER, what it actually receives isINT(RVAL). the conversion is giving β¨silent type coercionβ¨. no cap.
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same energy, different language. fr fr. π
π USAGE π
this routine lets you set the current value of Conpack parameters. that's her job and she's iconic at it. π
for the complete list of parameters available in this utility, go check out the conpack_params man page. iykyk.
π₯ EXAMPLES π₯
use the ncargex command to see the following relevant examples β and bestie, there are a LOT, so buckle up, we're listing every single one:
caredg, ccpcfx, ccpcica, ccpcir, ccpcis, ccpcit, ccpcll, ccpclu, ccpga, ccphand, ccphcf, ccphl, ccphlt, ccpila, ccpils, ccpilt, ccplbam, ccpline, ccpllc, ccplll, ccpllp, ccpllt, ccpllw, ccpmap, ccpmovi, ccpmpxy, ccpnsd, ccppc1, ccppc2, ccppc3, ccppc4, ccppkcl, ccppole, ccprc, ccpscam, ccpset, ccpsps2, ccpspv, ccpt2d, ccpvp, colcon, cpex01, cpex02, cpex03, cpex04, cpex05, cpex06, cpex07, cpex08, cpex09, cbex01, vvex01, tconpa, fcover, ffex03, ffex05, fsfsgfa.
π« ACCESS π«
to use CPSETR or c_cpsetr, you load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that order. don't be chaotic about the ordering bestie, the order is load-bearing. π
π MESSAGES π
see the conpack man page for a description of all Conpack error messages and/or informational messages. if something goes sideways, that's where the receipts live. π§Ύ
π SEE ALSO π
π» Online
conpack, conpack_params, cpback, cpchcf, cpchcl, cpchhl, cpchil, cpchll, cpcica, cpclam, cpcldm, cpcldr, cpcltr, cpcnrc, cpdrpl, cpezct, cpgetc, cpgeti, cpgetr, cplbam, cplbdr, cpmpxy, cpmviw, cpmvrw, cppkcl, cppklb, cprect, cprset, cpscae, cpsetc, cpseti, cpsprs, cpsps2, ncarg_cbind
π Hardcopy
NCAR Graphics Contouring and Mapping Tutorial
π 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, babe. this was written on UNIX, dated March 1993 β yes, 1993, she's vintage, she's a classic, she predates us both and she still runs. πβ¨ respect the elders. bye bestie, go set some parameters π
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms