GCA(3NCARG)
โจ GCA (Cell Array) โ the NCAR Graphics glow-up for rectangles ๐
okay bestie, welcome to the NCAR Graphics manual, page GCA(3NCARG). this one's a whole vibe: you hand it a rectangle, it chops that rectangle into a grid of little cells, and every single cell gets its own color. it's giving mosaic energy. ๐
๐ธ NAME ๐ธ
GCA (Cell array) โ draws a cell array starting with a rectangle specified by two corner points; this initial rectangle is subdivided into subrectangles by specifying an arbitrary number of divisions in the X and Y directions; each subrectangle (or cell) is assigned a color and drawn with that color. ๐ฆ
๐ SYNOPSIS ๐
CALL GCA (XP1, YP1, XP2, YP2, NXCLR, NYCLR, IXCLR, IYCLR, NXDO, NYDO,
CLRIA)
โจ C-BINDING SYNOPSIS โจ
#include <ncarg/gks.h>
void gcell_array(const Grect *rect, const Gpat_rep *colr_array);
๐ DESCRIPTION ๐
okay so here's every single argument, no skipping, we're being thorough because that's the main character thing to do:
XP1โ (Real, Input) โ X world coordinate of point 1. ๐YP1โ (Real, Input) โ Y world coordinate of point 1. ๐XP2โ (Real, Input) โ X world coordinate of point 2. ๐YP2โ (Real, Input) โ Y world coordinate of point 2. ๐NXCLRโ (Integer, Input) โ X dimension of the color index arrayCLRIA. ๐งฎNYCLRโ (Integer, Input) โ Y dimension of the color index arrayCLRIA. ๐งฎIXCLRโ (Integer, Input) โ The index of the starting column in index arrayCLRIA. ๐ฏIYCLRโ (Integer, Input) โ The index of the starting row in index arrayCLRIA. ๐ฏNXDOโ (Integer, Input) โ Number of cell elements to draw in the X dimension. ๐ขNYDOโ (Integer, Input) โ Number of cell elements to draw in the Y dimension. ๐ขCLRIAโ (Integer array, Input) โ An array of color indices dimensionedNXCLRxNYCLRwhich is used to determine the color of each cell drawn. ๐จ
๐ซถ USAGE ๐ซถ
Points 1 and 2 must be diagonally opposite corner points of a rectangle to be divided into NXDO cells in the X dimension and NYDO cells in the Y dimension. like, corners on opposite ends of the diagonal, not neighbors. iykyk. ๐
๐ ACCESS ๐
To use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's it, that's the whole prerequisite. ๐ง
๐ SEE ALSO ๐
- Online:
gscr,gcell_array - Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
๐ COPYRIGHT ๐
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
ngl bestie, this page is UNIX-flavored and dates all the way back to March 1993 โ vintage, iconic, still slaying. that's GCA(3NCARG) fr fr, catch you in the next manpage. ๐๐โจ
๐ฆ 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