lentil.Rotate

class lentil.Rotate(angle=0, unit='degrees', order=3)[source]

Rotate a Wavefront by a specified angle

Parameters
  • angle (float) – Rotation angle counterclockwise from the horizontal.

  • unit ({'degrees', 'radians'}, optional) – Units of angle. Default is ‘degrees’.

  • order (int) – The order of the spline interpolation (if needed), default is 3. The order has to be in the range 0-5.

Note

If the angle is an even multiple of 90 degrees, numpy.rot90 is used to perform the rotation rather than scipy.ndimage.rotate. In this case, the order parameter is irrelevant because no interpolation occurs.

Attributes

amplitude

Electric field amplitude transmission

depth

Number of independent masks (segments) in mask

global_mask

Flattened view of mask

mask

Binary mask

phase

Electric field phase shift

pixelscale

Physical (row, col) sampling of each pixel in the Plane.

ptt_vector

2D vector representing piston and tilt in x and y.

shape

Plane dimensions computed from mask.

slice

tilt

List of additional Tilt terms associated wirth this Plane

Methods

copy()

Make a copy of this object.

fit_tilt([inplace])

Fit and remove tilt from Plane phase via least squares.

multiply(wavefront[, inplace])

Multiply with a wavefront

resample(pixelscale[, inplace])

Resample a plane via interpolation.

rescale(scale[, inplace])

Rescale a plane via interpolation.