title: geotiffread function in Matlab
body: <p>I have a "Tiff" file which is taken by landsat 7, band 3. I want to reach its geo tiff info. However when I try to perform "geotiffread" function on that image it says: </p>
  
  <pre><code>     ?? Error using ==&gt; geotiffinfo&gt;readinfo
       Multiple images exist in the file and the HEIGHT or WIDTH values are not equal.
  
       Error in ==&gt; geotiffinfo at 215
       info  = readinfo(filename);
  
       Error in ==&gt; geotiffread at 82
       info  = geotiffinfo(filename);
  </code></pre>
  
  <p>From the error message I understand that I need to split the tiff file and take the same height and width portion of the image. In other to solve this issue I perform the following operation:</p>
  
  <pre><code>     &gt;&gt; h = imread(data,1);
       &gt;&gt; z = h(1:7000, 1:7000);
       &gt;&gt; imwrite(z, 'deneme.tif');
       &gt;&gt; geotiffread('deneme.tif');
  </code></pre>
  
  <p>it gives the following error:</p>
  
  <pre><code>     ??? Error using ==&gt; geotiffinfo&gt;readinfo
       The file 'C:\......\deneme.tif' does not contain GeoTIFF Tags.
  
       Error in ==&gt; geotiffinfo at 215
       info  = readinfo(filename);
  
       Error in ==&gt; geotiffread at 82
       info  = geotiffinfo(filename);
  </code></pre>
  
  <p>How can I solve this problem? How can I read the geotiff info from tiff images? Any help will be greatly appreciated..</p>