spacetelescope / webbpsf

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

Add some more per-instrument specializations in setup_sim_to_match_file #726

Closed obi-wan76 closed 4 months ago

obi-wan76 commented 1 year ago

First reported by Martha Boyer: "It appears to just grab the FILTER keyword from the image header and assign that to inst.filter, but that won’t work for images where the filter is in the pupil wheel (e.g., pupil+filter = F164N+F150W2). In this example, Webbpsf is assigning inst.filter=F150W2, but it should assign inst.filter to F164N."

Further confirm with some of the wavefront sensing observations (WL images) where the combination F212N (filter) and WLM8 (pupil) simulates the F212N filter, not the WL image

obi-wan76 commented 11 months ago

from Martha "webbpsf.setup_sim_to_match_file, but it’s not working because the image headers have PUPIL = MASKBAR & webbpsf says that NIRCam doesn’t have a pupil mask called MASKBAR. Presumbly webbpsf uses MASKSWB and MASKLWB, but that’s not what’s in the image header"

obi-wan76 commented 9 months ago

See #768

mperrin commented 5 months ago

This issue shouldn't have been closed in December, since the PR #768 wasn't (and still isn't) merged.

mperrin commented 4 months ago

PR #768 was merged in April, so this can be considered closed now.