Outliers¶
sensingpy.preprocessing.outliers provides statistical methods for detecting
and masking outlier pixels in raster data.
IQR¶
IQR
¶
Interquartile Range (IQR) method for outlier masking.
Args: data (np.ndarray): array to be masked. distance (float, optional): distance to consider a value an outlier. Defaults to 1.5.
Returns: np.ndarray: array with outliers masked as NaN.
Source code in sensingpy/preprocessing/outliers.py
Z_Score¶
Z_Score
¶
Z-Score method for outlier masking.
Args: data (np.ndarray): array to be masked.
Returns: np.ndarray: array with outliers masked as NaN.
Source code in sensingpy/preprocessing/outliers.py
upper_percentile¶
upper_percentile
¶
Masks values above a certain percentile.
Args: data (np.ndarray): array to be masked. percentile (float): limit for upper percentile.
Returns: np.ndarray: array with outliers masked as NaN.
Source code in sensingpy/preprocessing/outliers.py
lower_percentile¶
lower_percentile
¶
Masks values below a certain percentile.
Args: data (np.ndarray): array to be masked. percentile (float): limit for lower percentile.
Returns: np.ndarray: array with outliers masked as NaN.