【发布时间】:2018-05-08 08:39:24
【问题描述】:
我有一些 hdf4 文件想在 R 中读取。
我遇到了this 使用gdalUtils 包的答案。
但是下面的代码给了我一个警告,它不起作用。
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)
这个建议也没有奏效
gdal_setInstallation(ignore.full_scan=FALSE)
你知道在 R 中读取 HDF4 文件的任何其他包或方法吗?
【问题讨论】:
-
您为什么不尝试执行您的警告?
No GDAL installation found表示需要先安装gdal。在 Windows 上,在 R 中安装库rgdal就足够了。