rename_ij_piv#

Rename the PIV data file generated by the ImageJ macro _0.txt to my format {:05d}.csv. Keep only x, y, u, v columns and add mask column if applicable.

Syntax

python rename_ij_piv.py piv_folder
  • piv_folder: piv data folder containing .txt files

Edit

  • Nov 30, 2022 – Initial commit.

  • Dec 01, 2022 – Remove apply mask step, because it is not indicated in the script name and could be confusing.

  • Dec 13, 2022 – Remove residual mask related code.

  • Jan 05, 2023 – (i) Remove unused import. (ii) 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)