- Detector.rescale(scale, inplace=False)¶
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.phase is rescaled via 3rd order spline interpolation.
Plane.mask is rescaled via 0-order nearest neighbor interpolation.
Plane.pixelscale is adjusted appropriately.
scale (float) – Scale factor for interpolation. Scale factors less than 1 shrink the Plane while scale factors greater than 1 grow it.
inplace (bool, optional) – Modify the original object in place (True) or create a copy (False, default)
- Return type
All interpolation is performed via scipy.ndimage.map_coordinates