circle_cap¶
- pydl.pydlutils.mangle.circle_cap(radius, points)[source]¶
Construct caps based on input points (directions on the unit sphere).
- Parameters:
- radius
floatorndarray Radii of the caps in degrees. This will become the
CMvalue.- 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.
- radius
- Returns:
tupleA tuple containing
XandCMvalues for the cap.