Pupil obscuration function factory for use with Fourier optics.
Parameters
----------
visitInfo : `lsst.afw.image.VisitInfo`
Visit information for a particular exposure.
pupilSize : `float`
Size in meters of constructed Pupil array.
Note that this may be larger than the actual diameter of the
illuminated pupil to accommodate zero-padding.
npix : `int`
Constructed Pupils will be npix x npix.
Definition at line 49 of file pupil.py.
lsst.afw.cameraGeom.pupil.PupilFactory._pointLineDistance |
( |
| p0, |
|
|
| p1, |
|
|
| p2 ) |
|
staticprotected |
Compute the right-angle distance between the points given by `p0`
and the line that passes through `p1` and `p2`.
Parameters
----------
p0 : `tuple` of `numpy.ndarray`
2-tuple of numpy arrays (x, y focal plane coordinates)
p1 : ``pair`` of `float`
x,y focal plane coordinates
p2 : ``pair`` of `float`
x,y focal plane coordinates
Returns
-------
distances : `numpy.ndarray`
Numpy array of distances; shape congruent to p0[0].
Definition at line 89 of file pupil.py.