pynrc.simul.ngNRC.add_ipc¶
- pynrc.simul.ngNRC.add_ipc(im, alpha_min=0.0065, alpha_max=None, kernel=None)[source]¶
Convolve image with IPC kernel
Given an image in electrons, apply IPC convolution. NIRCam average IPC values (alpha) reported 0.005 - 0.006.
- Parameters
im (ndarray) – Input image or array of images.
alpha_min (float) – Minimum coupling coefficient between neighboring pixels. If alpha_max is None, then this is taken to be constant with respect to signal levels.
alpha_max (float or None) – Maximum value of coupling coefficent. If specificed, then coupling between pixel pairs is assumed to vary depending on signal values. See Donlon et al., 2019, PASP 130.
kernel (ndarry or None) – Option to directly specify the convolution kernel. alpha_min and alpha_max are ignored.
Examples
Constant Kernel
>>> im_ipc = add_ipc(im, alpha_min=0.0065)
Constant Kernel (manual)
>>> alpha = 0.0065 >>> k = np.array([[0,alpha,0], [alpha,1-4*alpha,alpha], [0,alpha,0]]) >>> im_ipc = add_ipc(im, kernel=k)
Signal-dependent Kernel
>>> im_ipc = add_ipc(im, alpha_min=0.0065, alpha_max=0.0145)