script to generate flow vectors