I have some hdf4 files which I want to read in R.
I came across this answer to use gdalUtils
package.
But the following code gives me a warning and it doesn't work.
gdalinfo(file.path)
NULL
Warning messages:
1: In gdal_setInstallation(ignore.full_scan = ignore.full_scan, verbose = verbose) :
No GDAL installation found. Please install 'gdal' before continuing:
- www.gdal.org (no HDF4 support!)
- www.trac.osgeo.org/osgeo4w/ (with HDF4 support RECOMMENDED)
- www.fwtools.maptools.org (with HDF4 support)
2: In gdal_setInstallation(ignore.full_scan = ignore.full_scan, verbose = verbose) :
If you think GDAL is installed, please run:
gdal_setInstallation(ignore.full_scan=FALSE)
This suggestion also didn't work
gdal_setInstallation(ignore.full_scan=FALSE)
Do you know of any other package or way to read HDF4 files in R?