create_matching_kernel#

photutils.psf.matching.create_matching_kernel(source_psf, target_psf, *, window=None)[source]#

Create a kernel to match 2D point spread functions (PSF) using the ratio of Fourier transforms.

Parameters:
source_psf2D ndarray

The source PSF. The source PSF should have higher resolution (i.e., narrower) than the target PSF. source_psf and target_psf must have the same shape and pixel scale.

target_psf2D ndarray

The target PSF. The target PSF should have lower resolution (i.e., broader) than the source PSF. source_psf and target_psf must have the same shape and pixel scale.

windowcallable, optional

The window (or taper) function or callable class instance used to remove high frequency noise from the PSF matching kernel. Some examples include:

For more information on window functions and example usage, see PSF Matching (photutils.psf.matching).

Returns:
kernel2D ndarray

The matching kernel to go from source_psf to target_psf. The output matching kernel is normalized such that it sums to 1.