make_power_law_error¶
-
hcipy.optics.
make_power_law_error
(pupil_grid, ptv, diameter, exponent=- 2.5, aperture=None, remove_modes=None)¶ Create an error surface from a power-law power spectral density.
- Parameters
- pupil_gridGrid
The grid on which to calculate the error.
- ptvscalar
The peak-to-valley of the wavefront aberration in meters.
- diameterscalar
The diameter over which the ptv is calculated.
- exponentscalar
The exponent of the power law.
- apertureField
The mask over which to calculate the ptv. A circular aperture with diameter diameter is used if this is not given.
- remove_modesModeBasis
The modes which to remove from the surface aberration. The peak-to-valley is enforced before these modes are removed. This allows for correctting surface errors with optic alignment.
- Returns
- Field
The surface error calculated on pupil_grid.