Skip to content

funcs

convolve(img, PSF)

Parameters:

Name Type Description Default
img ndarray

The map to be smoothed.

required
res float

FWHM (resolution) of the smoothing (arcmin).

required
dim_pixel float

Pixel size in the map (arcmin).

required

Returns:

Name Type Description
img_convolved ndarray

Same map but smoothed.

Source code in witch/external/xray/funcs.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
def convolve(img, PSF):
    """
    Parameters
    ----------
    img : np.ndarray
        The map to be smoothed.

    res : float
        FWHM (resolution) of the smoothing (arcmin).

    dim_pixel : float
        Pixel size in the map (arcmin).

    Returns
    -------
    img_convolved: np.ndarray
        Same map but smoothed.
    """

    img_convolved = convolve_fft(img, PSF)

    return img_convolved