make_uniform_grid

hcipy.field.make_uniform_grid(dims, extent, center=0, has_center=False)

Create a uniformly-spaced Grid of a certain shape and size.

Parameters
dimsscalar or ndarray

The number of points in each dimension. If this is a scalar, it will be multiplexed over all dimensions.

extentscalar or ndarray

The total extent of the grid in each dimension.

centerscalar or ndarray

The center point. The grid will by symmetric around this point.

has_centerboolean

Does the grid has to have the center as one of its points. If this is False, this does not mean that the grid will not have the center.

Returns
Grid

A Grid with RegularCoords.