title: reading HDF4 file with python - more than one dataset with same name
body: <p>I have a HDF4 file I need to read with python. For this I use <code>pyhdf</code>. In most cases I am quite happy to use <code>SD</code> class to open the file:</p>
  
  <pre><code>import pyhdf.SD  as SD
  hdf = SD.SD(hdfFile)
  </code></pre>
  
  <p>and then continue with </p>
  
  <pre><code>v1 = hdf.select('Data set 1')
  v2 = hdf.select('Data set 2')
  </code></pre>
  
  <p>However I have several groups in the HDF file and some variables appear in more than one group having the same name:</p>
  
  <p>In <code>Group 1</code> I have <code>Data set 3</code> and in <code>Group 2</code> I have <code>Data set 3</code> so my <code>select</code> command will only select one of then I guess (without me knowing which one?).</p>
  
  <p>Is there a simple way of selecting (reading) <code>Data set 3</code> from <code>Group 1</code> and then from <code>Group 2</code>?</p>
  
  <p>I have looked at the <code>V</code> and <code>VS</code> modules. I found an example script that will loop through all groups and subgroups etc. and find all variables (data sets). But I have now Idea of how to connect those variables to the parent, as for me to know into which group they belong.</p>