Skip to content
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

scaoSim from daspbuilder.py not correcting for wavefront and not converging #4

Open
joncox123 opened this issue Aug 9, 2020 · 1 comment

Comments

@joncox123
Copy link

While testing out the scaoSim code from daspbuilder.py, I question whether it is actually properly correcting from the reconstructed phase front. Basically, if I look at the "instantaneous image sc1" in daspctrl.py, the image appears heavily distorted, as if little to no correction is even occurring via the DM.

If I try to increase the number of DM actuators or WFS sub-apertures, the result actually gets worse. Looking at the DM mirror surface image, increasing number of actuators appears to make the wavefront reconstruction algorithm converge to the wrong result (seems to get stuck in some smooth local minimum that does not vary much with time).

If I switch to the Zernike DM (zdm), the behavior is similar, except that the output actually looks the best for 3 "actuators" (only tip/tilt correction). If I increase the Zernike order, it gets worse, just like the xinterp_dm. My conclusion is that the module that reconstructions the wavefront from the WFS is not working correctly (at least as the example is configured).

What I would like is to start from a working simulation configuration that does a good job correcting for the phase screen. Since DASP is used by many people, I assume the fault is with the scaoSim configuration, not a software bug. Can you please provide a fix or reply with an example configuration that illustrates DASP doing a good job correcting for the wavefront?

@joncox123 joncox123 changed the title Is scaoSim from daspbuilder.py actually doing anything? Is scaoSim from daspbuilder.py actually correcting for wavefront? Aug 9, 2020
@joncox123 joncox123 changed the title Is scaoSim from daspbuilder.py actually correcting for wavefront? scaoSim from daspbuilder.py not correcting for wavefront and not converging Aug 9, 2020
@agb32
Copy link
Owner

agb32 commented Aug 9, 2020

Should work - usually it gives a Strehl around 65% in the default case. If its not, suggests something might be wrong with some of the libraries being used in numpy for example. What OS are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants