Skip to content

Minimize bouncing on extended diffraction spikes #1342

@Borlaff

Description

@Borlaff

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()`

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    numericsInvolving details of the numerical algorithms for performing some calculation(s)optics/atmRelated to realistic PSFs from optics, atmosphere, etc.romanRelevant to Roman Space Telescope specifically, especially including the galsim.roman module.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions