Possible Duplicate:
gdalwarp in a bash shell for loop
I have several modis images (.hdf) from which I want to use only the one band (NDVI) and create a ".tif" image. I have already finished all the preprocessing and I ended on the command below:
gdal_translate -of GTiff $input documents/test.tif
When I run it, I got the answer: "Too many command options"
BUT when I use the command "echo" and run the model by copy/pasting the result of the "echo" command:
gdal_translate -of GTiff "HDF4_EOS:EOS_GRID:"documents/modis_images/PullDir/0302579596islumc/MOD13Q1.A2011289.h19v04.005.2011307201911.hdf":MODIS_Grid_16DAY_250m_500m_VI:250m 16 days NDVI" documents/test.tif
it works fine.
What am I doing wrong?