[R-sig-Geo] reading .hdf files

dododave dododave at gmail.com
Tue Mar 25 18:40:12 CET 2014


Thank-you Jonathan. I have done as you suggested and installed the latest
version of GDAL and gdalUtils, and then followed the example in the
gdal_translate help.

To convert the hdf file test.hdf to .tif format, I use the following code;

hdf4_dataset <- system.file("test.hdf", package="gdalUtils")
gdal_translate(hdf4_dataset,"test.tif",sd_index=1)
#I renamed the file to test.hdf for simplicity

But this did not work. I got this error;

Error in split1[[1]] : subscript out of bounds
In addition: Warning message:
running command '"C:\Program Files\QGIS Dufour\bin\gdalinfo.exe" ""' had
status 1 

The hdf file I was trying to load was;
ftp://ftp.orbit.nesdis.noaa.gov/pub/corp/scsb/wguo/GVIx/GVIx_VH_16km/NVI/GVIX_NL_G16_C07_NVI_Y2005_P26.hdf

Thanks,
Dave



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/reading-hdf-files-tp7586038p7586041.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list