astrowisp.piecewise_bicubic_psf module
Class Inheritance Diagram

A wrapper class for working with PSFs/PRFs from the C/C++ library.
- class astrowisp.piecewise_bicubic_psf.PiecewiseBicubicPSF(library_psf)[source]
Bases:
PSFBase
Implement the PSFBase methods for libary PSFs.
- __call__(x, y)[source]
Return the value(s) of the PSF at the given point(s).
- Parameters:
- Returns:
The value(s) of the PSF at (x, y) relative to the source center.
- Return type:
numpy array
- integrate(*, center_x, center_y, width, height, circle_radius=None)[source]
Return integrals of the PSF over circle-rectangle overlaps.
- Parameters:
center_x (float or array) – The x coordinate(s) of the center(s) of the rectangle(s) to integrate over.
center_y (float or array) – The y coordinate(s) of the center(s) of the rectangle(s) to integrate over.
width (float or array) – The width(s) of the rectangle(s).
height (float or array) – The height(s) of the rectangle(s).
circle_radius (float or array) – The rad(ii/us) of the circle(s). For zero entries or None, the integral is over the full rectangle(s).
- Returns:
The integral of the PSF over the specified area(s).
- Return type:
float or array