astrowisp.fake_image.piecewise_bicubic_psf module

Class Inheritance Diagram

Inheritance diagram of BipolynomialPSFPiece, PiecewiseBicubicPSF, PiecewisePSF

Defines the PiecewiseBicubicPSF class.

class astrowisp.fake_image.piecewise_bicubic_psf.PiecewiseBicubicPSF(boundaries, psf_parameters)[source]

Bases: PiecewisePSF

Inheritance diagram of astrowisp.fake_image.piecewise_bicubic_psf.PiecewiseBicubicPSF

A piecewise PSF class where the PSF over each piece is a bi-cubic function.

__init__(boundaries, psf_parameters)[source]

Initialize a PiecewiseBicubicPSF with the given shape.

Parameters:
  • boundaries – Dictionary (keys x and y) listing the cell horizontal/vertical boundaries.

  • psf_parameters

    A dictionary of 2x2 structures with keys:

    • values: The values of the piece bi-cubic polynomial af the

      intersections of the horizontal & vertical boundaries.

    • d_dx: The x derivatives of the piece bi-cubic polynomial af

      the intersections of the horizontal & vertical boundaries.

    • d_dy: The y derivatives of the piece bi-cubic polynomial af

      the intersections of the horizontal & vertical boundaries.

    • d2_dxdy: The x,y cross-derivatives of the piece bi-cubic

      polynomial af the intersections of the horizontal & vertical boundaries.

Returns:

None

static _create_piece(boundaries, psf_parameters)[source]

Return a BicubicPSFPiece satisfying the given constraints.

Parameters:

__init__ (The same as the arguments of)

Returns:

A BicubicPSFPiece instance with parameters as specified by psf_parameters.

Return type:

psf_piece