Internals#

Plane type#

ptype.ptype(ptype)

Create a plane type object

ptype.PType(ptype)

An object to hold the type of a Plane or Wavefront

Field#

field.Field(data[, pixelscale, offset, tilt])

Two-dimensional discretely sampled complex field.

field.boundary(fields)

Compute the bounding extents around a number of Field objects.

field.insert(field, out[, intensity, weight])

Insert a field into an array.

field.merge(a, b[, enforce_overlap])

Merge two Fields

field.overlap(fields)

True if two Fields overlap, otherwise False

field.reduce(fields)

Reduce a number of Fields into a potentially smaller disjoint set where overlapping Fields are merged.

Extent#

extent.array_extent(shape, shift[, parent_shape])

Compute the extent of a shifted array.

extent.array_center(extent)

Compute the center of an extent

extent.intersect(a, b)

Return True if two extents intersect, otherwise False

extent.intersection_extent(a, b)

Compute the extent of two overlapping extents

extent.intersection_shape(a, b)

Compute the shape of two overlapping extents.

extent.intersection_slices(a, b)

Compute slices of overlapping areas between two overlapping extents

extent.intersection_shift(a, b)

Compute the shift between two overlapping extents

Tilt interface#

plane.TiltInterface(**kwargs)

Utility class for holding common lofic shared by classes that need to implement the tilt interface.

Fourier transforms#

fourier.dft2(f, alpha[, shape, shift, ...])

Compute the 2-dimensional discrete Fourier Transform.

Helper functions#

helper.mesh(shape[, shift, angle])

Generate a standard mesh.

helper.boundary_slice(x[, threshold, pad])

Find bounding row and column indices of data within an array and return the results as slice objects.

helper.slice_offset(slice, shape)

Compute the offset of the center of a 2D slice relative to the center of a larger array.

helper.gaussian2d(size, sigma)

2D Gaussian kernel.