lentil.Plane.resample#
- Plane.resample(pixelscale)[source]#
- 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.opd 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. 
- Returns:
- plane – Resampled Plane. 
- Return type:
 - Notes - All interpolation is performed via scipy.ndimage.map_coordinates - See also