spacetelescope / webbpsf

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

Improvements in MIRI LRS instrument model #785

Open mperrin opened 9 months ago

mperrin commented 9 months ago

Digging into MIRI LRS for some science, I'm finding parts of the LRS mode model in webbpsf that can be improved / fixed

mperrin commented 9 months ago
miri_siaf = pysiaf.Siaf('MIRI')
ap_slit = miri_siaf.apertures['MIRIM_SLIT']  # SLIT aperture type, does not have coordinates in det frame defined

slit_width = (ap_slit.XIdlVert4+ap_slit.XIdlVert3)/2 - (ap_slit.XIdlVert1+ap_slit.XIdlVert2)/2
slit_height = (ap_slit.YIdlVert2+ap_slit.YIdlVert3)/2 - (ap_slit.YIdlVert4+ap_slit.YIdlVert1)/2

slit_width, slit_height
> (4.72345, 0.51525)

versus currently in webbpsf: (<Quantity 4.7 arcsec>, <Quantity 0.51 arcsec>)

mperrin commented 5 months ago

Much, but not all, of the improvement ideas noted in this issue were implemented in #787. The others may remain pending for some future improvement.