<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>-------- Message original --------<br>Sujet:&nbsp;&nbsp;[Gdal-dev] Problem with MODIS imagery
<br>Date:&nbsp;&nbsp; Tue, 31 Jul 2007 10:14:52 +0100<br>De:&nbsp;&nbsp;&nbsp;&nbsp; Hugo Martins &lt;<a href="mailto:hfpmartins@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">hfpmartins@gmail.com</a>&gt;<br>Pour ::&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gdal &lt;
<a href="mailto:gdal-dev@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gdal-dev@lists.maptools.org
</a>&gt;<br><br>My first problem is that i can only extract different bands if i use<br>gdal_translate -sds command. Well, i donīt need them all and so i have<br>tried gdal_translate HDF4_EOS:EOS_GRID:&quot;<br>MOD13Q1.A2007.h17v04.005.2007204181956.hdf

&quot;:MODIS_Grid_16DAY_250m_500m_VI!<br>Unfortunately i get error message saying the file size is zero and that<br>it has no bands. Any suggestions?</blockquote><div><br>try (be careful to respect the exact and full subset name with the &quot; and spaces) gdal_translate &quot;HDF4_EOS:EOS_GRID:&quot;&quot;&quot;
MOD13Q1.A2007177.h17v04.005.2007204181956.hdf&quot;&quot;&quot;:MODIS_Grid_16DAY_250m_500m_VI:250m 16 days NDVI&quot;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

The second problem: after extracting all bands without reprojecting, the<br>coordinates come with shifts when compared to extracted bands from mrt tools</blockquote><div>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

The third problem is with gdalwarp but i suppose it is originated by the<br>shifts occurred when extracting the bands (made previously). I want to<br>reproject images to WGS84 and so picked up esri prj files for sinusoidal
<br>and wgs84 projections. Then i&#39;ve changed the sinusoidal file by changing<br>the semimajor axis from 6371000 to 6371007.181 and by changing the<br>degree. After applied gdalwarp and shifts are maintained.</blockquote>

<div><br>2nd and third problem have already been discussed in this list. For example you should read :<br><a href="http://thread.gmane.org/gmane.comp.gis.gdal.devel/10482" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://thread.gmane.org/gmane.comp.gis.gdal.devel/10482
</a><br><br>There is also a ticket that looks very close to this ticket :<br><a href="http://trac.osgeo.org/gdal/ticket/1239" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://trac.osgeo.org/gdal/ticket/1239
</a><br><br>Good luck,<br>Guillaume.<br>&nbsp;<br></div><br></div>