deconvolve#
- aiapy.psf.deconvolve(smap, *, psf=None, iterations=25, clip_negative=True, use_gpu=True)[source]#
Deconvolve an AIA image with the point spread function.
Perform image deconvolution on an AIA image with the instrument point spread function using the Richardson-Lucy deconvolution algorithm [1].
Note
If the
cupy
package is installed and your machine has an NVIDIA GPU, the deconvolution will automatically be accelerated with CUDA. This can lead to more than an order of magnitude in performance increase compared to purenumpy
on a CPU. For more information on PSF deconvolution on a GPU, see [2].- Parameters:
smap (
Map
) – An AIA imagepsf (
ndarray
, optional) – The point spread function. If None, it will be calculatediterations (
int
, optional) – Number of iterations in the Richardson-Lucy algorithmclip_negative (
bool
, optional) – If the image has negative intensity values, set them to zero.use_gpu (
bool
, optional) – If True andcupy
is installed, do PSF deconvolution on the GPU withcupy
.
- Returns:
Map
– Deconvolved AIA image
See also
References