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.
- Return type:
4-tuple of 2D
numpy.array
>>> from myimagelib.pivLib import read_piv >>> x, y, u, v = read_piv(pivDir)
Edit
Nov 17, 2022 – Separate functions in two parts, and implement
to_matrix()
.