make_pupil_grid¶
-
hcipy.field.
make_pupil_grid
(dims, diameter=1)¶ Makes a new
Grid
, meant for descretisation of a pupil-plane wavefront.This grid is symmetric around the origin, and therefore has no point exactly on the origin for an even number of pixels.
- Parameters
- dimsndarray or integer
The number of pixels per dimension. If this is an integer, this number of pixels is used for all dimensions.
- diameterndarray or scalar
The diameter of the grid in each dimension. If this is a scalar, this diameter is used for all dimensions.
- Returns
- Grid
A
CartesianGrid
withRegularCoords
.