[Qgis-user] batch conversion of raster file to GeoTIFF format

Leo Kris Palao lk.palao at gmail.com
Thu Mar 5 19:02:00 PST 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150306/e58cc116/attachment.html>


More information about the Qgis-user mailing list