make_fourier_basis
- hcipy.mode_basis.make_fourier_basis(grid, fourier_grid, sort_by_energy=True)
Make a Fourier basis.
Fourier modes this function are defined to be real. This means that for each point, both a sine and cosine mode is returned.
Repeated frequencies will not be repeated in this mode basis. This means that opposite points in the fourier_grid will be silently ignored.
- Parameters
- gridGrid
The
Grid
on which to calculate the modes.- fourier_gridGrid
The grid defining all frequencies.
- sort_by_energybool
Whether to sort by increasing energy or not.
- Returns
- ModeBasis
The mode basis containing all Fourier modes.