is_in_window¶
- pydl.pydlutils.mangle.is_in_window(polygons, points, ncaps=0)[source]¶
Check to see if
points
lie within a set ofpolygons
.- Parameters:
- polygons
PolygonList
orFITS_polygon
A set of polygons.
- points
ndarray
orrecarray
If
points
is a 3-vector, or set of 3-vectors, then assume the point is a Cartesian unit vector. Ifpoint
is a 2-vector or set of 2-vectors, assume the point is RA, Dec.- ncaps
int
, optional If set, use only the first
ncaps
caps inpolygon
. This only exists to be passed tois_in_polygon()
.
- polygons
- Returns: