myimagelib.pivLib.to_dataframe

myimagelib.pivLib.to_dataframe(x, y, u, v)

Convert PIV data from 2D numpy arrays to a pandas DataFrame [x, y, u, v].

Parameters:
  • x – 2D numpy array of x-coordinates

  • y – 2D numpy array of y-coordinates

  • u – 2D numpy array of u-velocity components

  • v – 2D numpy array of v-velocity components

Returns:

pandas DataFrame with columns [‘x’, ‘y’, ‘u’, ‘v’]

Return type:

pandas.DataFrame

>>> from myimagelib.pivLib import to_dataframe
>>> to_dataframe(x, y, u, v)

Edit

  • Mar 02, 2025 – Initial commit.