<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: [Gdal-dev] Problem with MODIS imagery
<br>Date: Tue, 31 Jul 2007 10:14:52 +0100<br>De: Hugo Martins <<a href="mailto:hfpmartins@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">hfpmartins@gmail.com</a>><br>Pour :: gdal <
<a href="mailto:gdal-dev@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gdal-dev@lists.maptools.org
</a>><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:"<br>MOD13Q1.A2007.h17v04.005.2007204181956.hdf
":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 " and spaces) gdal_translate "HDF4_EOS:EOS_GRID:"""
MOD13Q1.A2007177.h17v04.005.2007204181956.hdf""":MODIS_Grid_16DAY_250m_500m_VI:250m 16 days NDVI"</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> </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'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> <br></div><br></div>