algorithm/vol_tools.py
def make_mpm(pm, threshold):
    """
    Make maximum probabilistic map (mpm)
    ---------------------------------------
    Parameters:
        pm: probabilistic map
        threshold: threholds to mask probabilistic maps
    Return:
        mpm: maximum probabilisic map
    """
    pm_temp = np.empty((pm.shape[0], pm.shape[1], pm.shape[2], pm.shape[3]+1))
    pm_temp[..., range(1, pm.shape[3]+1)] = pm 
    pm_temp[pm_temp < threshold] = 0
    mpm = np.argmax(pm_temp, axis=3)
    return mpm

    Make maximum probabilistic map (mpm)
    ---------------------------------------
    Parameters:
        pm: probabilistic map
        threshold: threholds to mask probabilistic maps
    Return:
        mpm: maximum probabilisic map
    
Make maximum probabilistic map (mpm)
Make maximum probabilistic map ( mpm )
def make_mpm(pm, threshold):
    pm_temp = np.empty((pm.shape[0], pm.shape[1], pm.shape[2], pm.shape[3]+1))
    pm_temp[..., range(1, pm.shape[3]+1)] = pm 
    pm_temp[pm_temp < threshold] = 0
    mpm = np.argmax(pm_temp, axis=3)
    return mpm
def make_mpm ( pm , threshold ) : pm_temp = np . empty ( ( pm . shape [ 0 ] , pm . shape [ 1 ] , pm . shape [ 2 ] , pm . shape [ 3 ] + 1 ) ) pm_temp [ ... , range ( 1 , pm . shape [ 3 ] + 1 ) ] = pm pm_temp [ pm_temp < threshold ] = 0 mpm = np . argmax ( pm_temp , axis = 3 ) return mpm
Make maximum probabilistic map (mpm)
Make maximum probabilistic map ( mpm )
"""
    Make maximum probabilistic map (mpm)
    ---------------------------------------
    Parameters:
        pm: probabilistic map
        threshold: threholds to mask probabilistic maps
    Return:
        mpm: maximum probabilisic map
    """
pm
None
threshold
threholds to mask probabilistic maps
threholds to mask probabilistic maps