1ARGTAI(3NCARG)                   NCAR GRAPHICS                  ARGTAI(3NCARG)
2
3
4

NAME

6       ARGTAI - Returns the area identifiers associated with a given point.
7

SYNOPSIS

9       CALL ARGTAI (MAP,XCD,YCD,IAI,IAG,MAI,NAI,ICF)
10

C-BINDING SYNOPSIS

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

DESCRIPTION

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

C-BINDING DESCRIPTION

65       The C-binding argument descriptions are the same as the FORTRAN
66       argument descriptions.
67

EXAMPLES

69       Use the ncargex command to see the following relevant examples:
70       carfill, carline, carmap, cbex01, tareas, fsppoint.
71

ACCESS

73       To use ARGTAI or c_argtai, load the NCAR Graphics libraries ncarg,
74       ncarg_gks, and ncarg_c, preferably in that order.
75

MESSAGES

77       See the areas man page for a description of all Areas error messages
78       and/or informational messages.
79

SEE ALSO

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-2007
88       University Corporation for Atmospheric Research
89
90       This documentation is free software; you can redistribute it and/or
91       modify it under the terms of the GNU General Public License as
92       published by the Free Software Foundation; either version 2 of the
93       License, or (at your option) any later version.
94
95       This software is distributed in the hope that it will be useful, but
96       WITHOUT ANY WARRANTY; without even the implied warranty of
97       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
98       General Public License for more details.
99
100       You should have received a copy of the GNU General Public License along
101       with this software; if not, write to the Free Software Foundation,
102       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
103
104
105
106UNIX                              March 1993                    ARGTAI(3NCARG)
Impressum