openpiv.validation.global_std

static validation.global_std(u, v, std_threshold=3)

Eliminate spurious vectors with a global threshold defined by the standard deviation

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.

std_threshold: int :

If the length of the vector (actually the sum of squared components) is larger than std_threshold times standard deviation of the flow field, then the vector is treated as an outlier. [default = 3]

Returns :

u : 2d np.ndarray

a two dimensional array containing the u velocity component, where spurious vectors have been replaced by NaN (numpy.nan)

v : 2d np.ndarray

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

Previous topic

openpiv.validation.sig2noise_val

Next topic

openpiv.scaling.uniform

This Page