lentil.Rotate.resample¶
- Rotate.resample(pixelscale, inplace=False)¶
Resample a plane via interpolation.
The following Plane attributes are resampled:
Plane.amplitude is resampled via 3rd order spline interpolation. The result is scaled to preserve total power.
Plane.phase is resampled via 3rd order spline interpolation.
Plane.mask is resampled via 0-order nearest neighbor interpolation.
Plane.pixelscale is adjusted appropriately.
- Parameters
pixelscale (float) – Desired Plane pixelscale.
inplace (bool, optional) – Modify the original object in place (True) or create a copy (False, default)
- Returns
plane – Resampled Plane.
- Return type
Note
All interpolation is performed via scipy.ndimage.map_coordinates
See also