[PIPE2D-354] Estimate high-order Zernike from defocused images Created: 12/Feb/19  Updated: 14/Apr/20  Resolved: 04/Apr/19

Status: Done
Project: DRP 2-D Pipeline
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0

Type: Task Priority: Normal
Reporter: ncaplar Assignee: ncaplar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File CloseResiduals.png     PNG File MoreZernike.png    
Issue Links:
Blocks
blocks PIPE2D-553 Estimate higher-order Zernike terms f... Done
Relates
relates to PIPE2D-555 Verify that adding higher-order Zerni... Open
relates to PIPE2D-394 Implement high-order Zernike estimate... Done
Story Points: 10
Sprint: 2019 B, 2DDRP-2019 C
Reviewers: hassan

 Description   

As discussed on the Monday morning meting (January 28, 2019, presentation here: https://github.com/nevencaplar/PFS_Work_In_Progress/blob/master/Presentations_And_Reports/MondayMorningJanuary282019.pdf), we identified the need to improve the fitting of defocused images. The defocused images (see example in CloseResiduals.png attached below) exhibit speckle behavior, with small scale residuals. This is probably due to insufficient modeling of the wavefront aberrations, i.e., not including high enough Zernike orders when describing the wavefront. Dependence of residuals could possibly be modeled with PCA analysis, but exact method needs to be investigated.



 Comments   
Comment by ncaplar [ 08/Mar/19 ]

Short update - I have semi-implemented the algorithm described here (https://arxiv.org/abs/astro-ph/0606388) and used by A. Roodman with Dark Eenrgy Camera (http://spie.org/Publications/Proceedings/Paper/10.1117/12.857680). In the plot MoreZernike.png I am showing 1. at the left, starting proposal going up to zernike 22, 2. in the middle, adding 56 more Zernike components, 3. on the right, how would perfect subtractions look like.

What has not yet been done:
1. The algorithm only varies higher order Zernike, i.e., keeps the component up to z22 fixed, and varies higher order. I would need to implement possibility to vary all the orders.
2. The code tries to minimize the difference between the model and the science image in flux, not in chi**2.
3. The code is not integrated with the rest of the fitting routine.
This code to determine wavefront is also very fast, so the whole fitting routine would probably stand to benefit from it.

Comment by ncaplar [ 12/Mar/19 ]

After discussion with Robert during the Monday meeting and after the plan is:
1. Use this newly developed method to fit all the residuals. Involves some work in extending the code so that it can run in parallel on the cluster.
2. Do PCA analysis on the residuals. This is to be done on the vectors containing Zernike coefficients which best describe the improvement in the residual images.
3. Use this prediction to predict high-order corrections when moving into focus

Comment by ncaplar [ 04/Apr/19 ]

I have implemented a version of this code. With the full understanding that is not particularly transparent, the current code is at https://github.com/nevencaplar/PFS_Work_In_Progress/blob/master/Direct_and_Interpolation_Analysis_Extra_Zernike_Mar2019.py
The second part, basically outlined in the March 11 comment above has not been yet implemented, as we started to worry more about wrong characterization of the lower order Zernike (PIPE2D-393).

Comment by ncaplar [ 04/Apr/19 ]

hassan I recommend that we close this ticket on this level (shows that it improves final results and we likely have to considered it in the future) and resurrect it in the future as one of the improvements to the PSF solution code.

Comment by hassan [ 04/Apr/19 ]

ncaplar ok, but can you create a new ticket to track the extra work you proposed in your 11 March comment please?

Comment by hassan [ 04/Apr/19 ]

Closed following ncaplar recent comment - additional tickets will be created to track further work.

Generated at Sat Feb 10 15:51:37 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.