processing_library/arrays/cleaners.py
def calculate_scale_scale_moment_moment_psf(psf, scalestack):
    """ Calculate scale-dependent moment psfs

    Part of the initialisation for Algorithm 1

    :param scalestack:
    :param psf: psf
    :return: scale-dependent moment psf [nscales, nscales, nmoment, nmoment, nx, ny]
    """
    nmoment2, nx, ny = psf.shape
    nmoment = max(nmoment2 // 2, 1)
    nscales = scalestack.shape[0]

    # Lines 3 - 5 from Algorithm 1
    scale_scale_moment_moment_psf = numpy.zeros([nscales, nscales, nmoment, nmoment, nx, ny])
    for t in range(nmoment):
        for q in range(nmoment):
            scale_scale_moment_moment_psf[:, :, t, q] = convolve_convolve_scalestack(scalestack, psf[t + q])
    return scale_scale_moment_moment_psf
 Calculate scale-dependent moment psfs

    Part of the initialisation for Algorithm 1

    :param scalestack:
    :param psf: psf
    :return: scale-dependent moment psf [nscales, nscales, nmoment, nmoment, nx, ny]
    
Calculate scale-dependent moment psfs
Part of the initialisation for Algorithm 1
Calculate scale - dependent moment psfs Part of the initialisation for Algorithm 1
def calculate_scale_scale_moment_moment_psf(psf, scalestack):
    nmoment2, nx, ny = psf.shape
    nmoment = max(nmoment2 // 2, 1)
    nscales = scalestack.shape[0]
    scale_scale_moment_moment_psf = numpy.zeros([nscales, nscales, nmoment, nmoment, nx, ny])
    for t in range(nmoment):
        for q in range(nmoment):
            scale_scale_moment_moment_psf[:, :, t, q] = convolve_convolve_scalestack(scalestack, psf[t + q])
    return scale_scale_moment_moment_psf
def calculate_scale_scale_moment_moment_psf ( psf , scalestack ) : nmoment2 , nx , ny = psf . shape nmoment = max ( nmoment2 // 2 , 1 ) nscales = scalestack . shape [ 0 ] scale_scale_moment_moment_psf = numpy . zeros ( [ nscales , nscales , nmoment , nmoment , nx , ny ] ) for t in range ( nmoment ) : for q in range ( nmoment ) : scale_scale_moment_moment_psf [ : , : , t , q ] = convolve_convolve_scalestack ( scalestack , psf [ t + q ] ) return scale_scale_moment_moment_psf
Calculate scale-dependent moment psfs
Part of the initialisation for Algorithm 1
Calculate scale - dependent moment psfs Part of the initialisation for Algorithm 1
""" Calculate scale-dependent moment psfs

    Part of the initialisation for Algorithm 1

    :param scalestack:
    :param psf: psf
    :return: scale-dependent moment psf [nscales, nscales, nmoment, nmoment, nx, ny]
    """ # Lines 3 - 5 from Algorithm 1
scale-dependent moment psf [nscales, nscales, nmoment, nmoment, nx, ny]
scale - dependent moment psf [ nscales nscales nmoment nmoment nx ny ]
psf
None
scalestack
None