In a public fork of this repo https://github.com/rchwn/jwst_kernels I made a minor change to make_psf.py, where the resample factor is now set to 5 (from 4) and parity is forced to be odd. This ensures the PSF generated by stpsf has the maximum centered on a single pixel.
The other change is the addition of a new function process_source_psf() in kernel_core.py so that one can instantiate the parent class without needing to refer to a target PSF, and save the processed source PSF (same Aniano processing from the original version of kernel_core.py). Just copied it to a new function.
I put some test scripts along with the version of kernel_core.py from the main branch of jwst_kernels so you can compare side by side.
Tagging @francbelf , @akleroy , @thomaswilliamsastro
In a public fork of this repo https://github.com/rchwn/jwst_kernels I made a minor change to make_psf.py, where the resample factor is now set to 5 (from 4) and parity is forced to be odd. This ensures the PSF generated by
stpsfhas the maximum centered on a single pixel.The other change is the addition of a new function
process_source_psf()inkernel_core.pyso that one can instantiate the parent class without needing to refer to a target PSF, and save the processed source PSF (same Aniano processing from the original version of kernel_core.py). Just copied it to a new function.I put some test scripts along with the version of kernel_core.py from the main branch of jwst_kernels so you can compare side by side.
Tagging @francbelf , @akleroy , @thomaswilliamsastro