webbpsf icon indicating copy to clipboard operation
webbpsf copied to clipboard

For coronagraph masks, add "bar_offset_y" for NIRCam. Add similar for the round occulters and MIRI as well.

Open mperrin opened this issue 7 years ago • 3 comments

As requested by @ariedel for use in Pandeia ETC coronagraph generation script

mperrin avatar Feb 19 '18 20:02 mperrin

Use case is that Pandeia requires the PSF to be centered on a pixel; this currently requires us to snap to pixel positions rather than the actual requested XY location.

ariedel avatar Feb 19 '18 20:02 ariedel

This turns out to be a real pain in the neck for MIRI, given the different rotated coordinate systems. Because of how the optics are implemented, the "natural" way to offset the FQPM is in V2V3, rotated by ~ 5 deg from the instrument detector X and Y (which is what Pandeia wants to work in). So even implementing a "simple" option to offset the focal plane mask by a given amount inevitable is going to involve some coordinate transforms. Not hard, just more work.

NIRCam's comparatively simple.

mperrin avatar Feb 19 '18 23:02 mperrin

@ariedel, remind me where we left things with the coronagraph PSF generation script. I have this open issue about adding an option for shifting the masks around, and added code back in February to implement it. I'm not sure if any more is needed now? If you're happy with the coronagraph PSF generation script then good and I won't worry about any more effort on this issue.

mperrin avatar Apr 27 '18 22:04 mperrin