processing_library/arrays/cleaners.py
def calculate_scale_moment_residual(residual, scalestack):
    """ Calculate scale-dependent moment residuals

    Part of the initialisation for Algorithm 1: lines 12 - 17

    :param scalestack:
    :param residual: residual [nmoment, nx, ny]
    :return: scale-dependent moment residual [nscales, nmoment, nx, ny]
    """
    nmoment, nx, ny = residual.shape
    nscales = scalestack.shape[0]

    # Lines 12 - 17 from Algorithm 1
    scale_moment_residual = numpy.zeros([nscales, nmoment, nx, ny])
    for t in range(nmoment):
        scale_moment_residual[:, t, ...] = convolve_scalestack(scalestack, residual[t, ...])
    return scale_moment_residual
 Calculate scale-dependent moment residuals

    Part of the initialisation for Algorithm 1: lines 12 - 17

    :param scalestack:
    :param residual: residual [nmoment, nx, ny]
    :return: scale-dependent moment residual [nscales, nmoment, nx, ny]
    
Calculate scale-dependent moment residuals
Part of the initialisation for Algorithm 1: lines 12 - 17
Calculate scale - dependent moment residuals Part of the initialisation for Algorithm 1 : lines 12 - 17
def calculate_scale_moment_residual(residual, scalestack):
    nmoment, nx, ny = residual.shape
    nscales = scalestack.shape[0]
    scale_moment_residual = numpy.zeros([nscales, nmoment, nx, ny])
    for t in range(nmoment):
        scale_moment_residual[:, t, ...] = convolve_scalestack(scalestack, residual[t, ...])
    return scale_moment_residual
def calculate_scale_moment_residual ( residual , scalestack ) : nmoment , nx , ny = residual . shape nscales = scalestack . shape [ 0 ] scale_moment_residual = numpy . zeros ( [ nscales , nmoment , nx , ny ] ) for t in range ( nmoment ) : scale_moment_residual [ : , t , ... ] = convolve_scalestack ( scalestack , residual [ t , ... ] ) return scale_moment_residual
Calculate scale-dependent moment residuals
Part of the initialisation for Algorithm 1: lines 12 - 17
Calculate scale - dependent moment residuals Part of the initialisation for Algorithm 1 : lines 12 - 17
""" Calculate scale-dependent moment residuals

    Part of the initialisation for Algorithm 1: lines 12 - 17

    :param scalestack:
    :param residual: residual [nmoment, nx, ny]
    :return: scale-dependent moment residual [nscales, nmoment, nx, ny]
    """ # Lines 12 - 17 from Algorithm 1
scale-dependent moment residual [nscales, nmoment, nx, ny]
scale - dependent moment residual [ nscales nmoment nx ny ]
residual
residual [nmoment, nx, ny]
residual [ nmoment nx ny ]
scalestack
None