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 of PNAM are 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 parameter PNAM pointed at. and here's the plot twist 🫒: if the internal parameter is of type REAL, it just gets RVAL straight up. but if the internal parameter is of type INTEGER, what it actually receives is INT(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 (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 πŸ’–