vcor_dual_prf/vcor_dual_prf.py
def _mask_diff_above(diff_ma, th_ma):
    """
    Creates a mask of the values which differ from a reference more
    than a specified threshold

    Parameters
    ----------
    data_ma : masked array
        Data
    ref_ma : masked array
        Reference data
    th_ma :  masked array
        Threshold values

     Returns
     -------
     mask : numpy bool mask
         Masked above threshold
         
     """

    mask = np.zeros(diff_ma.shape)
    
    mask[np.ma.abs(diff_ma) > th_ma] = 1
    mask[diff_ma.mask] = 0

    return mask.astype(bool)

    Creates a mask of the values which differ from a reference more
    than a specified threshold

    Parameters
    ----------
    data_ma : masked array
        Data
    ref_ma : masked array
        Reference data
    th_ma :  masked array
        Threshold values

     Returns
     -------
     mask : numpy bool mask
         Masked above threshold
         
     
Creates a mask of the values which differ from a reference more
than a specified threshold

Parameters

data_ma : masked array
Data
ref_ma : masked array
Reference data
th_ma :  masked array
Threshold values

Returns

mask : numpy bool mask
Masked above threshold
Creates a mask of the values which differ from a reference more than a specified threshold Parameters data_ma : masked array Data ref_ma : masked array Reference data th_ma : masked array Threshold values Returns mask : numpy bool mask Masked above threshold
def _mask_diff_above(diff_ma, th_ma):
    mask = np.zeros(diff_ma.shape)
    mask[np.ma.abs(diff_ma) > th_ma] = 1
    mask[diff_ma.mask] = 0
    return mask.astype(bool)
def _mask_diff_above ( diff_ma , th_ma ) : mask = np . zeros ( diff_ma . shape ) mask [ np . ma . abs ( diff_ma ) > th_ma ] = 1 mask [ diff_ma . mask ] = 0 return mask . astype ( bool )
Creates a mask of the values which differ from a reference more
than a specified threshold
Creates a mask of the values which differ from a reference more than a specified threshold
"""
    Creates a mask of the values which differ from a reference more
    than a specified threshold

    Parameters
    ----------
    data_ma : masked array
        Data
    ref_ma : masked array
        Reference data
    th_ma :  masked array
        Threshold values

     Returns
     -------
     mask : numpy bool mask
         Masked above threshold
         
     """
diff_ma
th_ma