lentil.Rotate.rescale#
- Rotate.rescale(scale)#
Rescale a plane via interpolation.
The following Plane attributes are resampled:
- Plane.amplitude is rescaled via 3rd order spline interpolation. The
result is scaled to preserve total power.
Plane.opd is rescaled via 3rd order spline interpolation.
Plane.mask is rescaled via 0-order nearest neighbor interpolation.
Plane.pixelscale is adjusted appropriately.
- Parameters:
scale (float) – Scale factor for interpolation. Scale factors less than 1 shrink the Plane while scale factors greater than 1 grow it.
- Returns:
plane
- Return type:
Notes
All interpolation is performed via scipy.ndimage.map_coordinates
See also