resize_psf

photutils.psf.matching.resize_psf(psf, input_pixel_scale, output_pixel_scale, *, order=3)[source]

Resize a PSF using spline interpolation of the requested order.

Parameters:
psf2D ndarray

The 2D data array of the PSF.

input_pixel_scalefloat

The pixel scale of the input psf. The units must match output_pixel_scale.

output_pixel_scalefloat

The pixel scale of the output psf. The units must match input_pixel_scale.

orderfloat, optional

The order of the spline interpolation (0-5). The default is 3.

Returns:
result2D ndarray

The resampled/interpolated 2D data array.