andykee / lentil

Heart-healthy physical optics
https://andykee.github.io/lentil/
Other
14 stars 6 forks source link

Need to be able to specify arbitrary wavefront tilts #1

Closed andykee closed 4 years ago

andykee commented 4 years ago

One of the key missing bits of functionality in the propagator is to allow arbitrary tilts to be specified. The driving use-case for this at the moment is simulating pointing error that causes the PSF to wander around the focal plane from frame to frame when the line of sight stability isn't great.

I think a lot of the base functionality is there, but there are a couple of gotchas:

The intended usage is something along the lines of:

planes = [Tilt(x=1e-6, y=-3e-6), pupil, detector]

The interface should allow for specifying both a static offset or providing a function which returns a shift every time it is called. This may result in the development of a RandomTilt object.