-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/06/2013 01:38 PM, Jose Gomez-Dans wrote: > On 6 September 2013 11:33, Eloi <[email protected]> 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 >
Yes, but is this the right way of doing it? Because basically with a_llur option the image is being gereferenced and it may create some distortions, I am correct? Nevertheless the result is quit good. Eloi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSKcN0AAoJEP9qulIE6g+ypTEH/1rFCnQ45ozg0UU/RALA9eem a36Vxa9DARXZF3t5+uLhDsKybsB/PcXlSGLRuaWifhWyouQJukAS9FE99/D0D0q3 fUtXyfg1MTBM/cuIryjDT18zebzX9HfdKfe0WnY6Kum8WYxQzzllfLSIwplHl4XF oS0q9Oi9/CNJB4YbU+xbQie8xFOT/29g2fdiMxTxSe0Zgn+5Hqn2QUXEQOD9cpd7 zYDYMCvQPYh3+lRdo6cZN9auZn47Is8sLi+91S6/Ng8UL9g8faMq9ITYDXZwRYuQ TcBBtFCosbAB9to18fbnalRzo5QPhECck1Mz0zmIj0j23McMbBfyWKQoY5LcMT4= =3rrM -----END PGP SIGNATURE----- _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
