make_supersampled_grid

hcipy.field.make_supersampled_grid(grid, oversampling)

Make a new grid that oversamples by a factor oversampling.

Note

The Grid grid must be a grid with separable coordinates.

Parameters:
gridGrid

The grid that we want to oversample.

oversamplinginteger or scalar or ndarray

The factor by which to oversample. If this is a scalar, it will be rounded to the nearest integer. If this is an array, a different oversampling factor will be used for each dimension.

Returns:
Grid

The oversampled grid.