ism3d.utils.misc.makepsf

ism3d.utils.misc.makepsf(header, beam=None, size=None, mode='oversample', factor=None, norm='peak')[source]

make a 2D Gaussian image as PSF, warapping around makekernel() beam: tuple (bmaj,bmin,bpa) quatity in fits convention

otherwise, use header bmaj/bmin/bpa

size: (nx,ny) <– in the FITS convention (not other way around, or so called ij)

norm=’peak’ would be godo for Jy/pix->Jy/beam output

Note: we choose not use Gaussian2DKernel as we want to handle customzed PSF case in upstream (as dirty beam)