You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the function utils.shift_ker_stack in mccd.py, the kernel size lanc_rad is negative for three of the 1262 P3 CFIS tiles. This creates a numpy error. It seems that all PSF moments are -1, which is set as size in line mccd.py:1351.
This error should either be caught earlier, or the lanc_rad variable be set accordingly to a valid number.
The text was updated successfully, but these errors were encountered:
After discussions with @tobias-liaudat this error is due to moments not being correctly estimated by galsim:HSM on certain images.
The variable lanc_rad is the interpolation radius to center the PSFs. In practise lanc_rad = 8 works well.
So an easy fix is to use this default if the input value is too small.
When calling the function
utils.shift_ker_stack
inmccd.py
, the kernel sizelanc_rad
is negative for three of the 1262 P3 CFIS tiles. This creates anumpy
error. It seems that all PSF moments are -1, which is set as size in linemccd.py
:1351.This error should either be caught earlier, or the lanc_rad variable be set accordingly to a valid number.
The text was updated successfully, but these errors were encountered: