openpiv.validation.global_val

openpiv.validation.global_val(u, v, u_thresholds, v_thresholds)

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

a two dimensional array containing the u velocity component.

v : 2d np.ndarray

a two dimensional array containing the v velocity component.

u_thresholds: two elements tuple :

u_thresholds = (u_min, u_max). If u<u_min or u>u_max the vector is treated as an outlier.

v_thresholds: two elements tuple :

v_thresholds = (v_min, v_max). If v<v_min or v>v_max the vector is treated as an outlier.

Returns :

u : 2d np.ndarray

a two dimensional array containing the u velocity component, where spurious vectors have been replaced by np.nan

v : 2d np.ndarray

a two dimensional array containing the v velocity component, where spurious vectors have been replaced by np.nan

Previous topic

openpiv.filters.replace_outliers

Next topic

openpiv.validation.sig2noise_val

This Page