[Gdal-dev] Problem with MODIS imagery

guillaume huby guillaume.huby.lists at gmail.com
Wed Aug 1 03:00:09 EDT 2007


>
> -------- Message original --------
> Sujet:  [Gdal-dev] Problem with MODIS imagery
> Date:   Tue, 31 Jul 2007 10:14:52 +0100
> De:     Hugo Martins <hfpmartins at gmail.com>
> Pour ::         gdal <gdal-dev at lists.maptools.org >
>
> My first problem is that i can only extract different bands if i use
> gdal_translate -sds command. Well, i don´t need them all and so i have
> tried gdal_translate HDF4_EOS:EOS_GRID:"
> MOD13Q1.A2007.h17v04.005.2007204181956.hdf":MODIS_Grid_16DAY_250m_500m_VI!
> Unfortunately i get error message saying the file size is zero and that
> it has no bands. Any suggestions?


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"

The second problem: after extracting all bands without reprojecting, the
> coordinates come with shifts when compared to extracted bands from mrt
> tools



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


2nd and third problem have already been discussed in this list. For example
you should read :
http://thread.gmane.org/gmane.comp.gis.gdal.devel/10482

There is also a ticket that looks very close to this ticket :
http://trac.osgeo.org/gdal/ticket/1239

Good luck,
Guillaume.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070801/ed13edd2/attachment.html


More information about the Gdal-dev mailing list