thanks for sharing the file, but i believe it is erroneous.
When i plot the example given in the file (which creates trial vectors with gradually rising intesities&quantities in V and "increasing" winddirections in D) it does not start off with low intesities and quantities at North but at East and it secondly does not increase clockwise but counterclockwise. Its the same issue Bart seems to have noticed. 0 degrees coincides with East, 90 with North, 180 with West and 270 with South.
I'd love to use this tool but it seems to be incorrect.