1ARGTAI(3NCARG) NCAR GRAPHICS ARGTAI(3NCARG)
2
3
4
6 ARGTAI - Returns the area identifiers associated with a given point.
7
9 CALL ARGTAI (MAP,XCD,YCD,IAI,IAG,MAI,NAI,ICF)
10
12 #include <ncarg/ncargC.h>
13
14 void c_argtai (int *map, float xcd, float ycd, int *iai, int *iag, int
15 mai, int *nai, int icf)
16
18 MAP (an input/output array of type INTEGER) - An array
19 containing an area map that has been initialized by a call
20 to ARINAM and to which edges have been added by calls to
21 AREDAM. If you did not preprocess the area map by calling
22 ARPRAM, ARGTAI calls it before doing anything else.
23
24 Note: As part of initializing the area map, ARINAM stores
25 the dimension of MAP in MAP(1); therefore, the dimension
26 does not have to be given as an argument in calls to
27 ARGTAI.)
28
29 XCD (an input expression of type REAL) - The X coordinate, in
30 the current user coordinate system, of a point about which
31 you want to obtain information.
32
33 YCD (an input expression of type REAL) - The Y coordinate, in
34 the current user coordinate system, of a point about which
35 you want to obtain information.
36
37 IAI (an output array, dimensioned MAI, of type INTEGER) - The
38 array in which area identifiers for the area containing the
39 specified point will be returned.
40
41 IAG (an output array, dimensioned MAI, of type INTEGER) - The
42 array in which group identifiers for the area containing
43 the specified point will be returned.
44
45 MAI (an input expression of type INTEGER) - Dimension of each
46 of the arrays IAI and IAG. MAI must be greater than or
47 equal to NAI.
48
49 NAI (an output expression of type INTEGER) - The number of
50 values returned in IAI and IAG. NAI equals the number of
51 groups of edges that you put in the area map.
52
53 ICF (an input expression of type INTEGER) - Flag set nonzero by
54 you to indicate that the definition of the user coordinate
55 system has been changed since the last call to ARGTAI; in
56 this case, calls to GETSET must be executed by ARGTAI. If
57 you set the flag to zero, Areas assumes that the
58 information retrieved previously is still correct and skips
59 calls to GETSET. This option is valuable if you are
60 planning to make thousands of calls to ARGTAI with the same
61 area map: do the first one with ICF = 1 and the rest with
62 ICF = 0.
63
65 The C-binding argument descriptions are the same as the FORTRAN
66 argument descriptions.
67
69 Use the ncargex command to see the following relevant examples:
70 carfill, carline, carmap, cbex01, tareas, fsppoint.
71
73 To use ARGTAI or c_argtai, load the NCAR Graphics libraries ncarg,
74 ncarg_gks, and ncarg_c, preferably in that order.
75
77 See the areas man page for a description of all Areas error messages
78 and/or informational messages.
79
81 Online: areas, areas_params, ardbpa, ardrln, aredam, argeti, argetr,
82 arinam, armvam, arpram, arscam, arseti, arsetr, ncarg_cbind
83
84 Hardcopy: NCAR Graphics Contouring and Mapping Tutorial
85
87 Copyright (C) 1987-2009
88 University Corporation for Atmospheric Research
89 The use of this Software is governed by a License Agreement.
90
91
92
93UNIX March 1993 ARGTAI(3NCARG)