gfunction

jwst.ami.hextransformee.gfunction(xi, eta, c, pixel, d, lam, affine2d, minus=False)[source]

Fourier transform a half-hexagon.

By half-hexagon, it is meant that the hexagon is bisected from one corner to its diametrically opposite corner.

Parameters:
xi2D float array

Hexagon’s coordinate center at center of symmetry, along flat edge

eta2D float array

Hexagon’s coordinate center at center of symmetry, normal to xi

ctuple(float, float), required

Coordinates of center

pixelfloat, required

Pixel scale

dfloat, required

Flat-to-flat distance across hexagon

lamfloat, required

Wavelength

affine2dAffine2d object, required

Distortion object

minusbool, required

If True, use flipped sign of xi in calculation

Returns:
2D complex array

Fourier transform of one half of a hexagon.