uasal / webbpsf-stsci

James Webb Space Telescope PSF simulation tool
https://webbpsf.readthedocs.io
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

display_psf_difference requires HDUlist? #4

Open Jashcraf opened 4 years ago

Jashcraf commented 4 years ago

image

Jashcraf commented 4 years ago

Test case - take the difference of two of the same psf

mono_psf = spc825.calc_psf(nlambda=1, fov_arcsec=1.6,return_intermediates=True) mono_psf1 = spc825.calc_psf(nlambda=1, fov_arcsec=1.6) webbpsf.display_psf_difference(mono_psf,mono_psf1)

This returns the error in the comment above

mono_psf = spc825.calc_psf(nlambda=1, fov_arcsec=1.6) mono_psf1 = spc825.calc_psf(nlambda=1, fov_arcsec=1.6) webbpsf.display_psf_difference(mono_psf,mono_psf1)

Returns what is expected, a map of zeros. When subtracting psfs don't turn on return_intermediates image