def generate_threshold_mask(hist):
masked_array = np.ma.masked_values(hist, <NUM_LIT:0>)<EOL>masked_array = np.ma.masked_greater(masked_array, <NUM_LIT:10> * np.ma.median(hist))<EOL>logging.info('<STR_LIT>', np.ma.count_masked(masked_array))<EOL>return np.ma.getmaskarray(masked_array)<EOL>
Masking array elements when equal 0.0 or greater than 10 times the median

    Parameters
    ----------
    hist : array_like
        Input data.

    Returns
    -------
    masked array
        Returns copy of the array with masked elements.