[GRASS-user] How to use r.in.gdal and gdal to read MODIS NDVI/EVI
(HDF4) data?
Jose Gomez-Dans
jgomezdans at gmail.com
Thu Sep 3 08:08:01 EDT 2009
2009/9/3 Tveraa, Torkild <Torkild.Tveraa at nina.no>
> Hi all,
>
> I am trying to use gdal and r.in.gdal to read MODIS/HDF4 following the
> instructions at http://grass.osgeo.org/wiki/MODIS but I am obviously doing
> something wrong ☺
>
> gdal_translate
> HDF4_EOS:EOS_GRID:"MOD13Q1.A2006129.h18v01.005.2008321145449.hdf":MODIS_Grid_16DAY_250m_500m_VI
> slett.tif
>
> You want to convert from an HDF file to GeoTIFF. You need to provide the
full dataset name, and if you are in linux bash, you need to escape the
whole thing together. For your QK EVI data, the command looks like this:
gdal_translate -of GTiff
'HDF4_EOS:EOS_GRID:"MOD13Q1.A2006129.h18v01.005.2008321145449.hdf":MODIS_Grid_16DAY_250m_500m_VI:250m
16 days EVI' output.tif
Note the single quotes and the full HDF dataset name (with annoying spaces
in between, yes, I know... :-D)
J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090903/e8da34db/attachment-0001.html
More information about the grass-user
mailing list