pynrc.reduce.calib.ppc_deconvolve
- pynrc.reduce.calib.ppc_deconvolve(im, kernel, kfft=None, nchans=4, in_place=False, same_scan_direction=False, reverse_scan_direction=False, **kwargs)[source]
PPC image deconvolution
Given an image (or image cube), apply PPC deconvolution kernel to obtain the intrinsic flux distribution. This performs channel-by-channel deconvolution, taking into account the specific readout directly. This function can also be used for asymmetric IPC kernels.
- Parameters:
im (ndarray) – Image or array of images. Assumes detector coordinates where (0,0) is in bottom left.
kernel (ndarry) – Deconvolution kernel. Ignored if kfft is specified.
kfft (Complex ndarray) – Option to directy supply the kernel’s FFT rather than calculating it within the function. The supplied ndarray should have shape (ny,nx) equal to the input im. Useful if calling
ppc_deconvolvemultiple times.in_place (bool) – Perform calculate in place (overwrites original image).
nchans (int) – Number of amplifier channels.
same_scan_direction (bool) – Are all the output channels read in the same direction? By default fast-scan readout direction is
[-->,<--,-->,<--]Ifsame_scan_direction, then all-->reverse_scan_direction (bool) – If
reverse_scan_direction, then[<--,-->,<--,-->]or all<--