ARINAM(3NCARG)
β¨ ARINAM β¨ β it's giving "area map origin story" π
okay bestie, so this is ARINAM, a lil routine from the NCAR GRAPHICS library (you'll find it filed under section 3NCARG, iykyk). Its whole job? Initializes an area map. That's it, that's the vibe. π
πΈ SYNOPSIS πΈ
CALL ARINAM (MAP,LMAP)
like. that's the whole summoning ritual. β¨
π C-BINDING SYNOPSIS π
for my C girlies π«Ά
#include <ncarg/ncargC.h>
void c_arinam (int *map, int lmap)
π¦ DESCRIPTION π¦
okay so here's what those two lil arguments actually do, no gatekeeping:
MAPβ (output array, of typeINTEGER, dimensioned at leastLMAP) β this is the integer array where your area map gets built, bestie. it's the canvas, it's the main character. β¨ and here's the tea: every single vertex for an edge segment in your area map eats up ten words in the arrayMAP. ten. words. per. vertex. and no, you cannot forget the extras β the total vertex count includes the ones added at each intersection of edges, plus the ones added when long edge segments get broken into shorter edge segments. so budget accordingly, okay? don't come crying to me when your array is too smol πLMAPβ (an input expression of typeINTEGER) β this is just the length of theMAParray. boring, right? WRONG. because as part of the initialization process, the value ofLMAPgets stored inMAP(1)π which means you never have to pass it as an argument again in calls to the other routines that use the area map. it remembers for you. it's giving thoughtful. π
π§ C-BINDING DESCRIPTION π§
the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same facts, different accent. no notes. π
β EXAMPLES β
want to see this thing in action? use the ncargex command to check out these relevant examples β and yes, I'm listing every single one, because we don't skip:
cardb1, cardb2, carfill, carline, carmap, ccpcldm, ccpfil, ccplbam, ccpllb, ccpllc, ccplll, ccpllo, ccpllp, ccpllt, ccpllw, ccppc, ccppc1, ccppc2, ccppc3, ccppc4, ccprc, ccpscam, ccpvs, colcon, cmpfil, cmpgrp, cmpita, cpmitm, cmplab, cmpmsk, cmptit, cpex01, cpex02, cpex03, cpex04, cpex05, cpex06, cpex07, cpex08, eezmpa, arex01, cbex01, vvex01, tareas, tconpa, tezmpa, fcover, ffex00, ffex03, ffex05, fcirc, fsfsgfa, fsppoint.
that's a whole buffet, go feast. π
π₯ ACCESS π₯
to use ARINAM or c_arinam, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that order. order matters, bestie, don't freestyle it. β¨
π SEE ALSO π
Online: areas, areas_params, ardbpa, ardrln, aredam, argeti, argetr, argtai, armvam, arpram, arscam, arseti, arsetr, ncarg_cbind
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial
go read, I'll wait. π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
yes, that's the real legal text, keep it, respect it, don't touch it. π
okay and finally, the lil sign-off: this page lives in the NCAR GRAPHICS manual, it's from March 1993 (aged like fine wine fr fr π·), and it was formatted for UNIX. mwah. bye bestie, go init some area maps πβ¨π
π¦ 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