lentil.Wavefront#

class lentil.Wavefront(wavelength, pixelscale=None, diameter=None, focal_length=None, tilt=None, ptype=None)[source]#

A class representing a monochromatic wavefront.

Parameters:
  • wavelength (float) – Wavelength in meters

  • pixelscale (float, optional) – Physical sampling of wavefront

  • diameter (float, optional) – Wavefront diameter. Default is None

  • focal_length (float or np.inf, optional) – Wavefront focal length. A plane wave (default) has an infinite focal length (np.inf).

  • tilt ((2,) array_like, optional) – Radians of wavefront tilt about the x and y axes provided as [rx, ry]. Default is [0, 0] (no tilt).

  • ptype (lentil.ptype, optional) – Plane type. Default is lentil.none.

Attributes

field

Wavefront complex field

intensity

Wavefront intensity

pixelscale

Physical sampling of wavefront

ptype

Wavefront plane type

wavelength

Wavefront wavelength

focal_length

Wavefront focal length

diameter

Wavefront diameter

shape

Wavefront shape

Methods

empty(wavelength[, pixelscale, diameter, ...])

Create an empty Wavefront

insert(out[, weight])

Directly insert wavefront intensity data into an output array.