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:
dimsint or tuple of ints

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

extentscalar or tuple of floats

The total extent of the grid in each dimension.

centerscalar or tuple of floats

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.