title: lat,lon information from hdf file python
body: <p>I have a hdf file and want to extract data from it. For some reason i cant able to extract latitude and longitude values:</p>
  
  <p>the code that i tried is :</p>
  
  <pre><code>from pyhdf import SD
  hdf = SD.SD('MOD10C2.A2001033.006.2016092173057.hdf')
  data = hdf.select('Eight_Day_CMG_Snow_Cover')
  lat = (hdf.select('Latitude'))[:]
  </code></pre>
  
  <p>it gives me an error:</p>
  
  <pre><code>HDF4Error: select: non-existent dataset
  </code></pre>
  
  <p>I tried with: </p>
  
  <pre><code>lat = (hdf.select('Lat'))[:]
  </code></pre>
  
  <p>still does not help!</p>
  
  <p>data can be found in this <a href="https://drive.google.com/open?id=1r9uJbInGsYxGX3La5Fc4uAJYPREKhO13" rel="nofollow noreferrer">link</a></p>
  
  <p>any help will be highly appreciated!</p>
  
  <p>data format looks like:</p>
  
  <p>and the error I got is:</p>
  
  <pre><code>---------------------------------------------------------------------------
  HDF4Error                                 Traceback (most recent call last)
  ~/anaconda3/lib/python3.6/site-packages/pyhdf/SD.py in select(self, name_or_index)
     1635             try:
  -&gt; 1636                 idx = self.nametoindex(name_or_index)
     1637             except HDF4Error:
  
  ~/anaconda3/lib/python3.6/site-packages/pyhdf/SD.py in nametoindex(self, sds_name)
     1528         sds_idx = _C.SDnametoindex(self._id, sds_name)
  -&gt; 1529         _checkErr('nametoindex', sds_idx, 'non existent SDS')
     1530         return sds_idx
  
  ~/anaconda3/lib/python3.6/site-packages/pyhdf/error.py in _checkErr(procName, val, msg)
       22             err = "%s : %s" % (procName, msg)
  ---&gt; 23         raise HDF4Error(err)
  
  HDF4Error: nametoindex : non existent SDS
  
  During handling of the above exception, another exception occurred:
  
  HDF4Error                                 Traceback (most recent call last)
  &lt;ipython-input-11-21e6a4fdf8eb&gt; in &lt;module&gt;()
  ----&gt; 1 hdf.select('Lat')
  
  ~/anaconda3/lib/python3.6/site-packages/pyhdf/SD.py in select(self, name_or_index)
     1636                 idx = self.nametoindex(name_or_index)
     1637             except HDF4Error:
  -&gt; 1638                 raise HDF4Error("select: non-existent dataset")
     1639         id = _C.SDselect(self._id, idx)
     1640         _checkErr('select', id, "cannot execute")
  
  HDF4Error: select: non-existent dataset
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/1f7O9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1f7O9.png" alt="enter image description here"></a></p>