|
I have placed the representative scattering kernel at /tigress/HSC/PFS/sim_Neven/Scattering_Kernel. This kernel is the median of around 100 examples across the detector. Size is 28x28, where each pixel is the physical pixel (15 microns).
Example usage:
def custom_fftconvolve(array1, array2):
assert array1.shape==array2.shape
return np.fft.fftshift(np.real(np.fft.irfft2(np.fft.rfft2(array1)*np.fft.rfft2(array2))))
#convolve the psf with the scattered light kernel in the final resolution space
scattered_light_in_final_image= custom_fftconvolve(final_image_without_scatter,scattering_kernel)
#add back the scattering to the image
final_image=final_image_without_scatter+scattered_light_in_final_image
I am showing the examples of the procedure below:

|