make_subsampled_grid¶
-
hcipy.field.
make_subsampled_grid
(grid, undersampling)¶ Make a new grid that undersamples by a factor undersampling.
Note
The dimensions of the grid must be divisible by undersampling.
- Parameters
- gridGrid
The grid that we want to oversample.
- undersamplinginteger or scalar or ndarray
The factor by which to undersample. If this is a scalar, it will be rounded to the nearest integer. If this is an array, a different undersampling factor will be used for each dimension.
- Returns
- Grid
The undersampled grid.