CPBACK(3NCARG)
β¨ CPBACK β¨ (3NCARG)
okay bestie, gather round, because this is a NCAR GRAPHICS situation and it's giving "i just need a cute little box around my contour plot" π
πΈ NAME πΈ
CPBACK β draws a background for a contour plot. that's it. that's the job. it makes the frame. π
π¦ SYNOPSIS π¦
CALL CPBACK (ZDAT, RWRK, IWRK)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_cpback (float *zdat, float *rwrk, int *iwrk)
β¨ DESCRIPTION β¨
so like, all three of these arguments are arrays that came from the last call to CPRECT, CPSPS1, or CPSPS2, and listen β their contents must not have been changed since that call. do not touch. do not edit. leave them exactly as they were. fr fr. π
ZDATβ (REAL array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input) this is the data array. the main character. πRWRKβ (REAL array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input/output) this is the real workspace array.IWRKβ (INTEGER array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input/output) and this is the integer workspace array.
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same vibes, different syntax, no notes. π«Ά
π₯ USAGE π₯
you can call CPBACK at any time after the initialization call to CPRECT, CPSPS1, or CPSPS2. easy. no drama.
now β what CPBACK actually does depends on the value of the internal parameter 'MAP':
- if
'MAP'is set to zero,CPBACKdraws the perimeter of the current viewport by callingPERIM, in the utility Gridall, requesting'ZDM'-1 major ticks on the horizontal sides of the perimeter and'ZDN'-1 major ticks on the vertical sides. no minor ticks are drawn. nope, not a single one. π - if
'MAP'is set non-zero,CPBACKdoes nothing. it simply does not participate. it's in its quiet era. π
π EXAMPLES π
use the ncargex command to see the following relevant examples β and bestie, it's a whole roster, i'm not skipping a single one:
ccpback, ccpcff, ccpcfx, ccpcis, ccpcit, ccpclc, ccpcld, ccpcldm, ccpcll, ccpclu, ccpdflt, ccpfil, ccphand, ccphcf, ccphl, ccphlt, ccpila, ccpils, ccpilt, ccpklb, ccplbam, ccplbdr, ccpline, ccpllb, ccpllc, ccplll, ccpllo, ccpllp, ccpllt, ccpllw, ccpncls, ccpnet, ccpnof, ccpnsd, ccppc, ccppc1, ccppc2, ccppc3, ccppc4, ccppkcl, ccprc, ccprect, ccprwc, ccprwu, ccpscam, ccpset, ccpsps1, ccpsps2, ccpspv, ccptitle, ccpvp, cidsfft, cpex01, fsfsgfa.
okay that's a lot of examples but they ate. π₯
π ACCESS π
to use CPBACK or c_cpback, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, don't be chaotic about it. β¨
π MESSAGES π
see the conpack man page for a description of all Conpack error messages and/or informational messages. that's where the lore lives. iykyk. π
πΈ SEE ALSO πΈ
Online: conpack, 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, cpsetr, cpsps1, 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 bestie π this one came from the UNIX world, dated March 1993, and it lives under the name CPBACK(3NCARG). slay, stay framed, and don't touch your workspace arrays. periodt. π¦β¨
π¦ 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