CPCICA(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– 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 to CPRECT, CPSPS1, or CPSPS2, input) this is your data array, the main character 🌟
  • RWRK β€” (REAL array, dimensioned as specified in the last call to CPRECT, CPSPS1, or CPSPS2, input/output) the real workspace array, it's the backstage crew fr fr πŸ’ͺ
  • IWRK β€” (INTEGER array, dimensioned as specified in the last call to CPRECT, CPSPS1, or CPSPS2, input/output) the integer workspace array, same deal, also doing the work behind the scenes 🫢
  • ICRA β€” (INTEGER array, dimensioned ICA1 by "n", where "n" is greater than or equal to the value of the argument ICAN, input/output) this is your cell array bestie, the whole point πŸ’–
  • ICA1 β€” (INTEGER, input) the first dimension of the FORTRAN array ICRA, 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 πŸ”’
  • XCPF and YCPF β€” (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 πŸ“
  • XCQF and YCQF β€” (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 β€” icra is dimensioned n by ica1 where n is greater than or equal to the value of the argument ican πŸŒ€
  • ica1 β€” the second dimension of the array icra (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 (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