title: How to change projection with MODIS hdf file using GDAL in Python?
body: <p>I have some MODIS hdf files and trying to change the projection from Sinusoidal to Lambert Conformal Conic using GDAL module in Python.Here is my python code and it returns error message:</p>
  
  <pre><code>import os,sys
  import gdal
  import numpy
  
  os.sys('gdalwarp test.hdf outfile.hdf -t_srs "+proj=lcc"')
  
  
    File "projection_cmd.py", line 5, in ?
      os.sys('gdalwarp test.hdf outfile.hdf -t_srs "+proj=lcc"')
  TypeError: 'module' object is not callable
  </code></pre>
  
  <p>When I use command line to run :</p>
  
  <pre><code>gdalwarp test.hdf outfile.hdf -t_srs "+proj=lcc"
  ERROR 1: Unable to compute a transformation between pixel/line
  and georeferenced coordinates for test.hdf.
  There is no affine transformation and no GCPs.
  </code></pre>
  
  <p>How can I fix it?Thanks!</p>