myimagelib.pivLib.read_piv

myimagelib.pivLib.read_piv(pivDir)

Read piv data from pivDir as X, Y, U, V. pivDir contains *.csv files, which store PIV data of each image pair in a separated file. The data are organized in 4-column tables, (x, y, u, v). This function reconstructs the 2D data, by inferring the dimensions from data.

Parameters

pivDir – directory of the folder hosting PIV data.

Returns

X, Y, U, V – 2D PIV data.

TEST

>>> X, Y, U, V = read_piv(pivDir)

Edit

Nov 17, 2022

Separate functions in two parts, and implement to_matrix().