def threshold_array(arr, threshold=2e-4):
    """
    Thresholds an array, returning a binary array

    Parameters
    ---------
    arr : NumpyArray
        Contains the data to threshold
    Returns
    ---------
    NumpyArray
        Returns arr with binary values, depending of the threshold
    """
    return (arr > threshold)