spherical_surface_sag

hcipy.optics.spherical_surface_sag(radius_of_curvature, fill_value=None)

Makes a Field generator for the surface sag of an even aspherical surface.

Parameters:
radius_of_curvaturescalar

The radius of curvature of the surface.

fill_valuescalar or {‘min’, ‘max’} or None

The value with which to replace NaNs. If this is None, no NaNs will be replaced and the original array is returned. If this is either ‘min’ or ‘max’, the NaNs will be replaced by the minimum or maximum of the array respectively.

Returns:
Field generator

This function can be evaluated on a grid to get the sag profile.