当我加载rgdal和GdalUtils包来读取hdf4文件时,使用以下内容
library(raster)
library(raster)
library(sp)
library(rgdal)
library(proj4)
library(gdalUtils)`
它提供以下警告信息
rgdal: version: 1.2-12, (SVN revision 681)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 2.2.0, released 2017/04/28
Path to GDAL shared files: C:/Users/Geosoft/Documents/R/win-library/3.4/rgdal/gdal
Loaded PROJ.4 runtime: Rel. 4.9.3, 15 August 2016, [PJ_VERSION: 493]
Path to PROJ.4 shared files: C:/Users/Geosoft/Documents/R/win-library/3.4/rgdal/proj
Linking to sp version: 1.2-5
之后我尝试了以下
file<-"D:\\sample_lst\\MOD11A2.A2000089.h21v07.006.2015058064314.hdf"
sds<-get_subdatasets(file)
它开始非常繁忙,只返回任何东西
即使我尝试了以下
library("gdalUtils")
gdal_setInstallation(verbose=TRUE)
getOption("gdalUtils_gdalPath")
但是需要花费大量时间来扫描文件。
有没有人可以帮我阅读subatasets和gdalinfo