[gdal-dev] MOD13C2 assign coord. sist.

Jose Gomez-Dans jgomezdans at gmail.com
Fri Sep 6 04:38:44 PDT 2013


On 6 September 2013 11:33, Eloi <eloi at openmailbox.org> wrote:

> Assigning EPSG:4326 nothing comes up when loading the image with
> others data in EPSG:4326.
>

You are right, the data is missing georeference information:
$ gdalinfo
'HDF4_EOS:EOS_GRID:"MOD13C2.A2000032.005.2006272104028.hdf":MOD_Grid_monthly_CMG_VI:CMG
0.05 Deg Monthly NDVI'
[snip snip snip]
Corner Coordinates:
Upper Left  (  -1.0000000,  -1.0000000)
Lower Left  (  -1.0000000,  -1.0000000)
Upper Right (  -1.0000000,  -1.0000000)
Lower Right (  -1.0000000,  -1.0000000)
Center      (  -1.0000000,  -1.0000000)

So you are right, you need to specify it. This works
$ gdal_translate -of GTiff  -a_srs "EPSG:4326" -a_ullr -180 90 180 -90 \
'HDF4_EOS:EOS_GRID:"MOD13C2.A2000032.005.2006272104028.hdf":MOD_Grid_monthly_CMG_VI:CMG
0.05 Deg Monthly NDVI' ndvi.tif

Cheers,
Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130906/eba9d3ea/attachment.html>


More information about the gdal-dev mailing list