multi_psf_fit

pipe.multi_psf_fit(psf_list, data_cube, noise_cube, mask, xc, yc, fitrad=50, defrad=70, krn_scl=0.3, krn_rad=3, bg_fit=0, nthreads=16, non_negative=False)

Fit a defined PSF to a frame by constructing a matrix of offsets. Then produce a least-square fit of base functions defined by the PSF offset according to the matrix. The idea is to take care of motion blur. The number of offsets are defined by krn_rad, and the scale by krn_scl. In total there are (2*krn_rad+1)**2 offsets, offset by krn_scl pixels each.

Only fit if position is within fitrad from median position.