code: def read_function(data, window, ij, g_args):
      
      output = (data[0] > numpy.mean(data[0])).astype(data[0].dtype) * data[0].max()
      return output
docs: Takes an array, and sets any value above the mean to the max, the rest to 0