[PIPE2D-563] Sub-pixel Interpolation of PSF image for analysis of FRD Created: 23/Apr/20  Updated: 05/Jan/21  Resolved: 28/Apr/20

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

Type: Story Priority: Normal
Reporter: Brent Belland Assignee: Brent Belland
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File 6mrad_9mrad_simulation.png     PNG File 6mrad_9mrad_spectrograph.png     PNG File One_pixel_offset_simulation.png     PNG File One_pixel_offset_spectrograph.png     PNG File SubpixelScaling.png    
Issue Links:
Relates
relates to PIPE2D-548 Quantify the effect of variations in ... Done
relates to PIPE2D-549 Investigating extraction of FRD from ... Done
Sprint: 2DDRP-2021 A

 Description   

Residuals between spectrograph PSF images at different FRD are dominated by a dipole structure that indicates a shift between centroids of the images. The absolute position of the simulated PSFs is held constant between these images in the current version of the 2D-DRP code. That is, centroid shift is real and due to the changing FRD. However, in the spectrograph calculations are made relative to the centroid of the image. Thus, for a consistent analysis of the FRD effect on the spectrograph images, the centroid must be the same between images.



 Comments   
Comment by Brent Belland [ 23/Apr/20 ]

Pixel-level interpolation was tested to resolve the centroid shift issue. Pixel alignment worked correctly; however, centroids shift on hundredth of a pixel scales between PSFs of different FRDs in the spectrograph images. Sub-pixel alignment, thus requiring implementation of an interpolator, is thus required. Options for interpolation are currently being investigated. 

To understand the effect of alignment in more detail, simulation images before downsampling were used. One_pixel_offset_simulation.png demonstrates the characteristic residual from centroid misalignment, while One_pixel_offset_spectrograph.png demonstrates the downsampled result (which is a dipole; this is why the FRD image residuals being dipole-dominated indicated centroid misalignment). For comparison, 6mrad_9mrad_simulation.png indicates the residual between images with 6 mrad and 9 mrad FRD. Notably, this structure is different than that of the misalignment residual, giving hope to the prospect of extracting FRD from these images even after centroid alignment. However, the downsampled spectrograph image 6mrad_9mrad_spectrograph.png is also dominated by the dipole shape.

Comment by Brent Belland [ 28/Apr/20 ]

The function scipy.ndimage.interpolation.shift was found to appropriately reproduce pixel-order shifts and also found to successfully interpolate in order to shift sub-pixel distances utilizing third-order spline interpolation. SubpixelScaling.png demonstrates that the subpixel shift gives an appropriate residual magnitude relative to the residual magnitude in the relatively simple pixel shift image. Utilizing this function solves this issue. 

Comment by Brent Belland [ 28/Apr/20 ]

Code that solves this issue has been found and implemented into Brent's FRD analysis.

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