-
Notifications
You must be signed in to change notification settings - Fork 116
Description
Hi,
I am trying to generate a very extended PSF for Roman WFI with GalSim. However, I can't find a way to minimize the "reflected" (FFT-generated) diffraction spikes in the image array. Here is an example code and the product.
`import galsim
import galsim.roman as galsim_roman
import numpy as np
from astropy.io import fits
import matplotlib.pyplot as plt
SCA = 1
bandpass = "W146"
gsparams = galsim.GSParams(maximum_fft_size=30000, folding_threshold=1.e-20)
psf = galsim_roman.getPSF(SCA, bandpass, SCA_pos=None, pupil_bin=1, wcs=None,
n_waves=None, extra_aberrations=None, wavelength=1460.,
gsparams=gsparams, logger=None, high_accuracy=None, approximate_struts=None)
img = psf.drawImage()
img.write('test_psf.fits')
psf_fits = fits.open("test_psf.fits")
plt.imshow(np.log10(psf_fits[0].data), vmin=-13, vmax=-9)
plt.colorbar()`
Following the instructions here (https://galsim-developers.github.io/GalSim/_build/html/roman.html#galsim.roman.getPSF) I reduced the folding_threshold to 1.e-20, no difference.
Is there any possibility to minimize that effect? Thank you,
Alex