lentil.field.Field#
- class lentil.field.Field(data, pixelscale=None, offset=None, tilt=None)[source]#
Two-dimensional discretely sampled complex field.
- Parameters:
data (array_like) – Array containing the sampled field. Note that real-valued data is cast to complex.
pixelscale (float or None, optional) – Data array spatial sampling. If None (default), the field is assumed to be broadcastable to any legal shape without interpolation.
offset ((2,) array_like of ints or None, optional.) – Shift of the Field in (row, column) from (0, 0). If None (default), offset = (0, 0).
tilt (list, optional) –
List of objects which implement a
shift
method. This method should accept the following parameters:shift(xs, ys, z, wavelength)
and return an updated x and y shift. If None (default), tilt = [].
Attributes
Complex field data |
|
Field offset from (0, 0). |
|
Spatial sampling of data |
|
Extent of |
|
Tuple of Field dimensions |
|
Number of elements in the Field |
Methods