ARGTAI(3NCARG)
β¨ ARGTAI β¨ β bestie edition
okay so this is a page from the NCAR GRAPHICS manual set (yes, that NCAR GRAPHICS, the plotting legend herself) and we're about to learn exactly what ARGTAI does. spoiler: it's the girl who tells you which area your little point landed in. π
π NAME π
ARGTAI β returns the area identifiers associated with a given point.
like. you give it a point. it tells you what area that point is living in. iconic behaviour honestly. π«Ά
πΈ SYNOPSIS πΈ
CALL ARGTAI (MAP,XCD,YCD,IAI,IAG,MAI,NAI,ICF)
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_argtai (int *map, float xcd, float ycd, int *iai, int *iag, int
mai, int *nai, int icf)
π DESCRIPTION π
okay bestie, argument by argument, no skips, we're doing all of them:
MAPβ (an input/output array of typeINTEGER) an array holding an area map that has been initialized by a call toARINAM, and to which edges have been added by calls toAREDAM. and listen β if you did not preprocess that area map by callingARPRAM, thenARGTAIjust calls it for you before doing literally anything else. it's giving proactive. π
Note: as part of initializing the area map,ARINAMstores the dimension ofMAPinMAP(1). so the dimension does not have to be handed over as an argument in calls toARGTAI. she already knows her size, periodt.
XCDβ (an input expression of typeREAL) the X coordinate, in the current user coordinate system, of a point you want info about.YCDβ (an input expression of typeREAL) the Y coordinate, in the current user coordinate system, of that same point you want info about. (yes you need both. it's a point. points have two numbers. π¦)IAIβ (an output array, dimensionedMAI, of typeINTEGER) the array where the area identifiers for the area containing the specified point get returned.IAGβ (an output array, dimensionedMAI, of typeINTEGER) the array where the group identifiers for the area containing the specified point get returned.MAIβ (an input expression of typeINTEGER) the dimension of each of the arraysIAIandIAG. and this is important:MAImust be greater than or equal toNAI. no cap. πNAIβ (an output expression of typeINTEGER) the number of values returned inIAIandIAG.NAIequals the number of groups of edges that you put in the area map. so it's lowkey just counting your groups back to you.ICFβ (an input expression of typeINTEGER) a flag you set nonzero to say that the definition of the user coordinate system has been changed since the last call toARGTAI. in that case, calls toGETSETmust be executed byARGTAI. if you set the flag to zero, Areas assumes the info it retrieved previously is still correct and skips the calls toGETSET. and bestie, this option is valuable if you're planning to make thousands of calls toARGTAIwith the same area map: do the first one withICF = 1and the rest withICF = 0. that's the whole trick. main character efficiency. π
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same vibes, different language, we love a consistent queen. π
π EXAMPLES π
use the ncargex command to see the following relevant examples: carfill, carline, carmap, cbex01, tareas, fsppoint.
go look at them. seriously. they ate. π₯
β ACCESS β
to use ARGTAI or c_argtai, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. (in that order!! don't freestyle it. π)
π¦ MESSAGES π¦
see the areas man page for a description of all Areas error messages and/or informational messages. if something goes sideways, that's where the receipts live.
π« SEE ALSO π«
Online: areas, areas_params, ardbpa, ardrln, aredam, argeti, argetr, arinam, armvam, arpram, arscam, arseti, arsetr, 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 shipped as part of UNIX, dated March 1993 β vintage but still slaying fr fr. mwah πβ¨
π¦ 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