CPCICA(3NCARG)
π CPCICA β it's giving "color my cells" energy π
okay so bestie, welcome to CPCICA from NCAR GRAPHICS (yes the 3NCARG girlies know) β¨
πΈ NAME πΈ
CPCICA β incorporates into your cell array the color indices that get figured out by looking at where your contours land relative to the cell array. like, it literally goes "hmm where do these contours sit" and then paints your cells accordingly π¨π
π¦ SYNOPSIS π¦
CALL CPCICA (ZDAT, RWRK, IWRK, ICRA, ICA1, ICAM, ICAN,
+ XCPF, YCPF, XCQF, YCQF)
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_cpcica (float *zdat, float *rwrk, int *iwrk,
int *icra, int ica1, int icam, int ican, float xcpf,
float ycpf, float xcqf, float ycqf)
π DESCRIPTION π
so the first three arguments are arrays from the last call to CPRECT, CPSPS1, or CPSPS2 β and listen, their contents must not have been changed since that call. no cap. if you touched them, this whole thing is not going to vibe. π«
ZDATβ (REAL array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input) this is your data array, the main character πRWRKβ (REAL array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input/output) the real workspace array, it's the backstage crew fr fr πͺIWRKβ (INTEGER array, dimensioned as specified in the last call toCPRECT,CPSPS1, orCPSPS2, input/output) the integer workspace array, same deal, also doing the work behind the scenes π«ΆICRAβ (INTEGER array, dimensionedICA1by "n", where "n" is greater than or equal to the value of the argumentICAN, input/output) this is your cell array bestie, the whole point πICA1β (INTEGER, input) the first dimension of the FORTRAN arrayICRA, which contains your cell array πICAMβ (INTEGER, input) the first dimension of your cell array π’ICANβ (INTEGER, input) the second dimension of your cell array π’XCPFandYCPFβ (REAL, input) these are the coordinates, in the fractional coordinate system, of a point P. and P is the point at that corner of the rectangular area into which the cell array maps that corresponds to the cell(1,1). iconic corner behavior πXCQFandYCQFβ (REAL, input) the coordinates, in the fractional coordinate system, of a point Q. Q is the point at that corner of the rectangular area into which the cell array maps that corresponds to the cell(ICAM,ICAN). so like, the opposite corner, they're matching π«
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN ones, with the following exceptions β okay so literally only two things change, don't freak out:
icraβicrais dimensioned n byica1where n is greater than or equal to the value of the argumenticanπica1β the second dimension of the arrayicra(yes it flipped, that's just how C rolls, periodt π )
π EXAMPLES π
run the ncargex command to see these relevant examples, they ate honestly: ccpcica, ccpmovi π₯
π§ ACCESS π§
to use CPCICA or c_cpcica, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order, in that exact order, respect the sequence bestie π
π MESSAGES π
see the conpack man page for a description of all Conpack error messages and/or informational messages. it's all in there, iykyk π¬
β SEE ALSO β
Online: conpack, cpback, cpchcf, cpchcl, cpchhl, cpchil, cpchll, 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.
okay that's the whole page, you're fully caught up bestie, go make those cells gorgeous πΈπ
and a lil sign-off bc we keep it cute around here: this was the UNIX flavor of the page, dated March 1993, filed under CPCICA(3NCARG) π mwah, go slay your contours β¨
π¦ 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