The following posts contain various methods, tips and tricks for image and data processing. Many posts will be tailored to the handling of experimental images for particle image velocimetry (PIV) and the processing and plotting of the resulting velocity fields, however a lot of the methods and codes have much broader applications.
Manipulating Text Files
If you handle a lot of data from various programs, instruments and sources, it is inevitable that sooner or later you will be encountered with a large text file from Continue Reading →
Renumbering a series of files
I couldn’t tell you the number of times I’ve gone to run a code to process a series of images or velocity fields only to find that the file name and numbering sequence is not compatible with the particular code I am trying to run. Fortunately a basic bash script can solve these problems without the need to manually rename your files. Continue Reading →
Animating a Velocity Field with Python and FFmpeg
When examining complex fluid flows, from either experimental or numerical data, it can often be instructive to plot (and if time resolved animate) contours of a given quantity and an overlay of the instantaneous velocity vectors. This post shows how to generate and animate a vector field and contour plot. Continue Reading →