mean_velocity#

Compute mean velocity of PIV data.

  1. Compute the magnitude of each PIV arrow

  2. Take average of these arrows

Syntax

python mean_velocity.py piv_folder out_folder
  • piv_folder – folder containing PIV data (.csv), file names indicate frame number

  • out_folder – mean velocity data file (.csv), contain frame and mean_v columns

A folder of PIV files are used to generate a single mean velocity data file.

Test

python mean_velocity.py test_images\piv_drop test_images\mean_velocity

Edit

  • Dec 31, 2021 – Initial commit.

  • Jan 02, 2021 – Minor changes in docstring.

  • Jan 05, 2023 – Adapt myimagelib import style.

  • Feb 08, 2023 – Rewrite in function wrapper form, to make autodoc work properly. (autodoc import the script and execute it, so anything outside if __name__=="__main__" will be executed, causing problems)