is_in_cap¶
- pydl.pydlutils.mangle.is_in_cap(x, cm, points)[source]¶
Are the points in a (single) given cap?
- Parameters:
- x
ndarrayorrecarray Xvalue of the cap (3-vector).- cm
ndarrayorrecarray CMvalue of the cap.- points
ndarrayorrecarray If
pointsis a 3-vector, or set of 3-vectors, then assume the point is a Cartesian unit vector. Ifpointis a 2-vector or set of 2-vectors, assume the point is RA, Dec.
- x
- Returns:
ndarrayA boolean vector giving the result for each point.