astrowisp.fake_image.piecewise_psf module

Class Inheritance Diagram

Inheritance diagram of PSFBase, PiecewisePSF

Declares the PiecewisePSF base class for piecewise PSF functions.

class astrowisp.fake_image.piecewise_psf.PiecewisePSF(boundaries, pieces)[source]

Bases: PSFBase

Inheritance diagram of astrowisp.fake_image.piecewise_psf.PiecewisePSF

Base clas for PSFs defined on a grid of pieces.

__call__(x, y)[source]

See the documentation of PSFBase.__call__.

__init__(boundaries, pieces)[source]

Define a PSF with the given boundaries.

Parameters:
  • boundaries – Dictionary with keys x and y giving the offsets relative to the center of the horizontal piece boundaries. The PSF is zero left of the first or right of the last x boundary as wall as below the first and above the last y boundary.

  • pieces – The pieces making up the PSF should be a class inherited from PSFPiece.

Returns: None

get_down_range()[source]

Return how far the PSF extends downward of center.

get_left_range()[source]

Return how far the PSF extends to the left of center.

get_right_range()[source]

Return how far the PSF extends to the right of center.

get_up_range()[source]

Return how far the PSF extends upward of center.

integrate(left, bottom, width, height)[source]

See documentation of PSFBase.integrate.

astrowisp.fake_image.piecewise_psf.get_piece_index(boundaries, coordinate)[source]

Return the index of the piece along one axis containing the given coord.

Parameters:
  • boundaries – The offsets relative to the PSF center where different PSF pieces meet along the direction in which we are trying to locate the piece index.

  • coordinate – The coordinate we are trying to find the piece index of.

Returns:

The index along the selected coordinate of the piece

containing x.

Return type:

ind