poppy icon indicating copy to clipboard operation
poppy copied to clipboard

Support for intermediate planes?

Open joncox123 opened this issue 3 years ago • 1 comments

The docs state that you plan to add support for modeling propagation to intermediate planes. For example, if you want to compute the field some distance behind the image plane. Has this support been added? If not, do you have a timeline?

joncox123 avatar Aug 09 '20 20:08 joncox123

Yep, you can return intermediate planes if you set return_intermediates=True when you call the calc_psf function: https://poppy-optics.readthedocs.io/en/latest/api/poppy.Instrument.html#poppy.Instrument.calc_psf

There are examples here for a Fresnel system, this will let you model diffraction at any plane in the system: https://github.com/spacetelescope/poppy/blob/stable/notebooks/Fresnel_Propagation_Demo.ipynb

and there are examples here of returning intermediate pupil and image planes for a Fraunhofer system: https://github.com/spacetelescope/poppy/blob/stable/notebooks/MatrixFTCoronagraph_demo.ipynb

Is that what you were looking for?

(development has moved to https://github.com/spacetelescope/poppy/ but this feature is available for the versions in either repository).

douglase avatar Aug 09 '20 22:08 douglase