Eliminate spurious vectors with a global threshold.
This validation method tests for the spatial consistency of the data and outliers vector are replaced with np.nan (Not A Number) if at least one of the two velocity components is out of a specified global range.
Parameters : | u : 2d np.ndarray
v : 2d np.ndarray
u_thresholds: two elements tuple :
v_thresholds: two elements tuple :
|
---|---|
Returns : | u : 2d np.ndarray
v : 2d np.ndarray
|