query_polygon
call query_polygon( nside, vlist, nv, listpix, nlist [, nest, inclusive] )
name & dimensionality | kind | in/out | description |
---|---|---|---|
nside | I4B | IN | the
![]() |
vlist(1:3,0:*) | DP | IN | cartesian vector pointing at polygon respective vertices. |
nv | I4B | IN | number of vertices, should be equal to 3 or larger. |
listpix(0:*) | I4B/ I8B | OUT | the index for all pixels enclosed in the triangle. Make sure that the size of the array is big enough to contain all pixels. |
nlist | I4B/ I8B | OUT | The number of pixels listed in listpix. |
nest (OPTIONAL) | I4B | IN | The pixel indices are in the NESTED numbering scheme if nest=1, and in RING scheme otherwise. |
inclusive (OPTIONAL) | I4B | IN | If set to 1, all the pixels overlapping (even partially) with the polygon are listed, otherwise only those whose center lies within the polygon are listed. |
Returns the RING pixel index of all pixels in the polygon with vertices of cartesian coordinates (0,0,1), (1,0,0), (1,1,-1) and (0,1,0) in amap.
Version 3.11, 2013-04-24