-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn (or fail) on requested field-of-view too large for pupil sampling #180
Comments
This is actually the very first thing mentioned at the top of the "Known Issues" documentation section, but I know, nobody reads that. :-) http://pythonhosted.org/webbpsf/relnotes.html#known-issues There is some chance that I will have a very high resolution pupil map available in the not so distant future for calculations that do need this size. On the other hand, at distances like 60" or beyond, incoherent scatter can matter as much as diffraction. We have models for that but it's a different set of physics than what webbpsf is currently set up to simulate. |
Hi @mmechtley I just added a check for requested FOVs that exceed the critical angle for Nyquist sampling of the input pupil. If the user requests too large a FOV, at the very start of the PSF calculation it will issue warnings like this: This check is performed on a per-wavelength basis inside |
Looks excellent! Warning provides exactly the information I'd want. I'd consider the issue resolved. The large FoV PSFs above look great too. The NIRCam folks I'm working with will enjoy that. I assume with the AnalyticOpticalElement approach you don't get to use the OPD maps? Not a big deal for the aesthetics of simulated images of course. |
Argh - I was surprised you needed to make any changes in My plan for the next release of |
Yep, I spotted the |
I ran into this the other day when making NIRCam PSFs with webbpsf, though the issue is generic to poppy rather than specific to webbpsf. I put in a stupid-large output size (60"), then realized I was getting aliasing problems when I saw multiple copies of the PSF in my output. I think the problem's cause and its solution won't be obvious to many users -- mostly non-PSF specialists using tools like webbpsf rather than poppy users directly, though see e.g. the same problem in issue #135. TinyTim handled this by just forcing a max size since it knew its pupil sampling, but obviously that doesn't work for a more flexible system like this.
At the simplest (logic-wise) level I guess this would involve something like checking lambda/D and the pixel sampling at the last pupil plane (at least for FFT-based propagation), but warning early before lots of computation would be ideal.
The text was updated successfully, but these errors were encountered: