<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Leo,</div><div><br></div><div>I can't help you with why it isn't working as a batch, but:</div><div><br></div><div>1. Yes, the GDAL script at the bottom of the window should be expected to work in the OSGeo shell. </div><div><br></div><div>2. There's probably an equivalent in Processing, which might give you a better response. </div><div><br>-ramon.</div><div><br>On 6 Mar 2015, at 11:02, Leo Kris Palao <<a href="mailto:lk.palao@gmail.com">lk.palao@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>Hi QGIS users,</div><div><br></div><div>I am having a problem converting my <b>539 raster</b> files to <b>GeoTIFF format</b>. I tried using the GDAL <b>Translate</b> option in the <b>Processing Toolbox</b> but it reads only the <b>*.hdr</b> file of my raster not the file that holds my raster data. When I execute the batch process file using <b><i>file.hdr</i></b> as my input it returns:</div><div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Processing of the following files ended with error: <br>ERROR 1: The selected file is an ENVI header file, but to <br>open ENVI datasets, the data file should be selected <br>instead of the .hdr file. Please try again selecting <br>the data file corresponding to the header file: <br>J:/MODIS_EVI_smooth/mod_2002345_EVI_smth.hdr </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">>> J:/MODIS_EVI_smooth/mod_2002345_EVI_smth.hdr<br></blockquote></div><div><br></div><div>I cannot find the appropriate file type option when selecting which files to load as my inputs. Even thought I select<b> files(*.)</b> type option, still I cannot find my files in my directory.</div><div><br></div><div>I have also tried to load the <b>file.hdr</b> and later remove the <b>*.hdr</b> extension before executing the batch process but with no success.</div><div><br></div><div>This is the sample file that I am working on:<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">mod_2002345_EVI_smth................File...................45,000KB<br>mod_2002345_EVI_smth.hdr.......... HDR.................1KB</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">mod_2002345_EVI_smth.sml..........SML File............3KB</blockquote><div><br></div><div>I have successfully converting one raster file using Translate module under <b>Raster > Conversion > Translate</b> but I can only process one at a time. But I don't want to do this for my remaining raster data. Please also note the I have tried the batch mode but with no success.</div><div><br></div><div>I copied the GDAL script (below) and I wonder if I can run a batch processing of this script in OSGeo Shell. Just my guess.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">gdal_translate -a_srs "+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +a=6371007.181 +b=6371007.181 +units=m +no_defs" -a_nodata -3000 -of GTiff J:/MODIS_EVI_smooth/mod_2002345_EVI_smth J:/MODIS_EVI_smooth_TIFF/mod_2002345_EVI_smth.tif</blockquote><div><br></div><div>Can you help me with this.</div><div><br></div><div>Thanks,</div><div>-Leo</div></div></div></blockquote></body></html>