title: How do I insert my own values in Windrose.py?
body: <p>I have discovered <a href="http://youarealegend.blogspot.fr/2008/09/windrose.html" rel="nofollow">this</a> module that works great, I love the output.
  I am trying to change the values of the random input, here:</p>
  
  <pre><code>ws = random(500)*6
  wd = random(500)*360
  </code></pre>
  
  <p>From <a href="https://pypi.python.org/pypi/windrose/" rel="nofollow">this reference</a> we learn that </p>
  
  <blockquote>
    <p>This example uses randoms values for wind speed and direction(ws and wd variables). In situation, these variables are loaded with reals values (1-D array), from a database or directly from a text file (see the “load” facility from the matplotlib.pylab interface for that).</p>
  </blockquote>
  
  <p>With my code, I've created two lists :</p>
  
  <pre><code>angles = [v1, v2, v3...] # values that replace wd
  length = [v1, v2, v3...] # values that replace ws
  </code></pre>
  
  <p>These are the ways I've tried so far that don't work : </p>
  
  <pre><code>wd=np.array(angles)
  wx=np.array(length)
  
  wd=np.asarray(angles)
  ...
  wd=np.fromiter(angles)
  ...
  All give the error : TypeError: 'list' object is not callable
  </code></pre>
  
  <p>To be sure I actually have arrays:</p>
  
  <pre><code>a = np.array(angles)
  print type(a)
  &lt;type 'numpy.ndarray'&gt;
  print a.ndim
  1
  </code></pre>
  
  <p>I've also tried replacing directly with values, found in a thread <a href="http://thread.gmane.org/gmane.comp.python.matplotlib.general/9088/focus=9139" rel="nofollow">here.</a>, with the same results (list not callable)
  So I am replacing random() by a given array, but Qgis still returns a 'list' error.<br>
  What am I missing? </p>