title: 'float' object is unsubscriptable
body: <p>thats what I get:</p>
  
  <pre><code>TypeError: 'float' object is unsubscriptable
  </code></pre>
  
  <p>Thats what I did:</p>
  
  <pre><code>import numpy as N
  import itertools
  
  #I created two lists, containing large amounts of numbers, i.e. 3.465
  
  lx = [3.625, 4.625, ...]
  ly = [41.435, 42.435, ...] #The lists are not the same size!
  
  xy = list(itertools.product(lx,ly)) #create a nice "table" of my lists
  
  #that iterttools gives me something like
  print xy 
  [(3.625, 41.435), (3.625, 42.435), (... , ..), ... ]
  
  print xy[0][0]
  print xy[0][1] #that works just fine, I can access the varios values of the tuple in the list
  
  
  #down here is where the error occurs
  #I basically try to access certain points in "lon"/"lat" with values from xy through `b` and `v`with that iteration. lon/lat are read earlier in the script 
  
  b = -1
  v = 1
  
  for l in xy:
      b += 1
      idx = N.where(lon==l[b][b])[0][0]
      idy = N.where(lat==l[b][v])[0][0]
  </code></pre>
  
  <p><code>lan/lot</code> are read earlier in the script. I am working with a netCDF file and this is the latitude/longitude,read into lan/lot.
  Its an array, build with numpy.</p>
  
  <p>Where is the mistake? 
  I tried to convert <code>b</code> and <code>v</code> with <code>int()</code> to integers, but that did not help.
  The <code>N.where</code> is accessing through the value from <code>xy</code> a certain value on a grid with which I want to proceed. If you need more code or some plots, let me know please.</p>