Virtual Wind Image Recoloring Script

Virtual Wind, a wind analysis software, is able to export images with color coded arrows which designate the wind speed. However, the actual range of wind speeds that the arrow colors represent are dependent on the range of wind speeds visible in each image. Thus the color scales from two images from different view points of the same model will not necessarily correspond with one another.

To remedy this problem I created a Python script to recolor images exported from Virtual Wind so that arrows above a single specified threshold wind speed are colored one specific hue, and the remaining arrows below the threshold wind speed are recolored using a new hue gradient.

For example here is an original source image generated with virtual wind.

And here is the result of the script set to a threshold windspeed of 4 m/s.