[PIPE2D-243] Characterize PSF using out-of-focus images Created: 26/Sep/17  Updated: 06/Apr/19  Resolved: 05/Apr/19

Status: Won't Fix
Project: DRP 2-D Pipeline
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Normal
Reporter: ncaplar Assignee: ncaplar
Resolution: Won't Fix Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: PNG File 1_z5.png     PNG File 2_z6.png     PNG File 3_z7.png     PNG File 4_z8.png     PNG File 5_z9.png     PNG File 6_z10.png     PNG File 7_z11.png     PNG File Donut_Example.png     PNG File Models Log.png     PNG File Models.png     PNG File Originals Log.png     PNG File Originals.png     PNG File Pupils.png     PNG File Residuals, no rescale Log.png     PNG File Residuals, no rescale.png    
Issue Links:
Blocks
is blocked by PIPE2D-284 Estimate and understand effects cause... Won't Fix
Sub-Tasks:
Key
Summary
Type
Status
Assignee
PIPE2D-269 How to correctly and quickly estimate... Sub-task Done ncaplar  
Epic Link: PSF model
Sprint: 2DDRP-2019 D
Reviewers: hassan

 Description   

Measure the optical aberrations of individual exposures of PFS data from out-of-focus images.

The current plan is to follow the procedure by Joshua Mayers which was used for HSC images (e.g., https://jira.lsstcorp.org/browse/DM-8565 and connected tickets). This means forward modeling of the PFS images taken at LAM with Galsim.

I am documenting my progress at https://github.com/nevencaplar/PFS_Work_In_Progress/blob/master/Zernike.ipynb.

Update: July 5, 2018, report: https://www.overleaf.com/17550215gqrxkdfywqkp#/66627172/



 Comments   
Comment by ncaplar [ 26/Sep/17 ]

At the moment, I have been successful in running galsim and creating some mock images. I have also made a mock-up version of the pupil (see Pupil00.png). Jim G. should provide me at some point with illumination files which will give correct proportions of struts etc... At the moment I am struggling to understand if I am properly modeling the system, i.e., to set the all the parameters of the simulation (pupil size, pixel scale....) properly, so that the simulated images look somewhat like the LAM images.

Comment by ncaplar [ 20/Oct/17 ]

I have fully analyzed one of the test images taken at LAM (v3617).

Below we can see one image which shows poststamp images of the defocused spots across the detector. The full black squares are the positions that were either too faint, or for which the simulation on the cluster did not finish (because I put too strict time limits to run my job). The numbers above are x and y positions on the chip. I am showing both the linear and log scaling.


Then I model the post stamps. I have been modeling those with Galsim, with 16 parameters (z4 to z11 Zernike coefficients, size of the central obscuration, size of struts, x and y position of the central obscuration in the focal plane, x and y position on the chi, “size of the telescope”, size of the input fiber image). Results are quite good, capturing the main features of the actual data. There is only one obvious failure (at 3620,2347), and even data in corner of the detector is reproduced. Below I am showing results, with linear and log scaling.


When we look at the residuals in linear scale, some of the images are almost complete erased. Log scale reveals that some structure is still left.


One can also look at the “predicted” images of the pupils and their movement across the detector.

Below I am showing the estimates for the behavior of different Zernike coefficients across the detector (from z5 to z11). Size of the spots is the same for all of the images, the information is only in the color.







Future improvements, roughly in the order of priority that I would suggest:
1. Analysis on better images with larger spots and stronger signal, also use images with different defocus to compare results
2. Check if the images are uniformly illuminated by comparing data taken from both sides of focus
3. Eliminate the pupil parameters from the fit and use the data which will be provided from France about the movement of the central obscuration and struts across the detector
4. I am using “size of the telescope” as a free parameter - obviously this is wrong and I am using it hide some of my lack of knowledge about how the spectrographs work and abusing the code which was done for other purpose. This needs to be better understood (and other parameters in galsim which I am not touching at the moment, e.g., wavelength of the light).
5. Do a bit more realistic modeling of input fiber (currently it is top hat, realistically is that some wings)
6. Analyzing with the images with corrected gains (currently variance in the scientific images is different than what would be inferred from variance image)

Comment by ncaplar [ 05/Apr/19 ]

This is an old overarching ticket summarizing the development of the PSF pipelne from defocused images. The work has been split to many other tickets.

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