lentil.Plane.rescale

Plane.rescale(scale, inplace=False)[source]

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.

Parameters
  • 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)

Returns

plane

Return type

Plane

Note

All interpolation is performed via scipy.ndimage.map_coordinates

See also

Plane.resample