Hi Leo, I can't help you with why it isn't working as a batch, but:
1. Yes, the GDAL script at the bottom of the window should be expected to work in the OSGeo shell. 2. There's probably an equivalent in Processing, which might give you a better response. -ramon. > On 6 Mar 2015, at 11:02, Leo Kris Palao <[email protected]> wrote: > > Hi QGIS users, > > I am having a problem converting my 539 raster files to GeoTIFF format. I > tried using the GDAL Translate option in the Processing Toolbox but it reads > only the *.hdr file of my raster not the file that holds my raster data. When > I execute the batch process file using file.hdr as my input it returns: > >> Processing of the following files ended with error: >> ERROR 1: The selected file is an ENVI header file, but to >> open ENVI datasets, the data file should be selected >> instead of the .hdr file. Please try again selecting >> the data file corresponding to the header file: >> J:/MODIS_EVI_smooth/mod_2002345_EVI_smth.hdr >> >> J:/MODIS_EVI_smooth/mod_2002345_EVI_smth.hdr > > > I cannot find the appropriate file type option when selecting which files to > load as my inputs. Even thought I select files(*.) type option, still I > cannot find my files in my directory. > > I have also tried to load the file.hdr and later remove the *.hdr extension > before executing the batch process but with no success. > > This is the sample file that I am working on: > >> mod_2002345_EVI_smth................File...................45,000KB >> mod_2002345_EVI_smth.hdr.......... HDR.................1KB >> mod_2002345_EVI_smth.sml..........SML File............3KB > > I have successfully converting one raster file using Translate module under > Raster > Conversion > Translate 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. > > 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. > >> 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 > > Can you help me with this. > > Thanks, > -Leo
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
