[PIPE2D-615] Illumination estimate of the pupil should be constant across different spots for single fiber Created: 29/Jun/20  Updated: 29/Jan/22  Resolved: 02/Nov/21

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

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 example_in_defocus.png     PNG File example_in_focus.png     PNG File p4 frd_sigma.png    
Issue Links:
Blocks
blocks PIPE2D-697 Analyze Subaru images and create a 2d... In Progress
Relates
relates to PIPE2D-930 Problems when creating variance image... Done
relates to PIPE2D-928 Improve psf modelling with fiber illu... Won't Fix
Story Points: 8
Sprint: 2DDRP-2021 A

 Description   

FRD  is the same at different spots in the fiber. At the moment, I do iterative estimate which fits each spot in the fiber separately. This sometimes produces a consistent estimate of the FRD, but sometimes not (see p4_frd_sigma image attached). See also discussion on June 23, 2020 on #pfs-princeton channel. This needs to be improved.



 Comments   
Comment by ncaplar [ 26/Oct/21 ]

I have implemented an initial version of this algorithm (versions of internal codes that I use are Zernike_Module 0.49 and Zernike_parameter_estimation 0.45). This version only fits two spots in the same fiber at the same time. 

The optimization algorithm works so that parameters that should be the same for two spots are kept the same, while others are allowed to be free. So, for each spot, there is a separate swarm of particles - but each particle in one swarm has a ``twin'' particle that has the same parameters which described the fiber properties. At each step, I order the particles that are exploring the parameter space according to their quality. I find the particle which has the best ordering for both spots (the sum of their ordering position is the lowest), and this is declared the best particles for the next step. I then continue in ``standard'' fashion (I assign velocities to other particles that gravitate to the best particle and therefore explore the parameter space.)

After the first implementation, I am noticing some problems in both defocused and focused models.

Defocused images show some structure in their residuals (see example_in_defocus.png). In addition to the stronger residuals around structures, I am observing stronger residuals in the general area of the donut. 

The focused images also show some peculiar residuals (see example_in_focus.png). In this example, obviously, the ``cross'' feature seen in the data is not explained.  

I believe that a fraction of these problems is due to poor sampling of the parameter space and algorithm not finding the optimal solution. I am currently investigating this, and I believe that this can be made better.
Some fraction of problems might be indicative of the deeper issues - when we constrain the freedom in parameters, the algorithm struggles to explain the data. This might be indicative of wrong assumptions of deficiency of the algorithm - which were masked when we had more freedom. When I analyze more images at once the problems might get even more glaring. 

 

 

 

 

Comment by ncaplar [ 02/Nov/21 ]

The basic implementation has been achieved. The further improvements are in the follow up tickets (PIPE2D-928 and PIPE2D-929)

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