Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;光栅IO期间出现故障“;将光栅转换为data.frame时?_R_Dataframe_Raster_R Raster_Landsat - Fatal编程技术网

&引用;光栅IO期间出现故障“;将光栅转换为data.frame时?

&引用;光栅IO期间出现故障“;将光栅转换为data.frame时?,r,dataframe,raster,r-raster,landsat,R,Dataframe,Raster,R Raster,Landsat,有人知道会发生什么吗?这是我的控制台打印输出。奇怪的是,前四行as.data.frame运行时没有问题,但最后一行给出了“光栅IO期间失败”错误 我希望这是足够的信息,我问的问题是正确的。我对stackoverflow还不熟悉,对R和编码也比较陌生。感谢您的帮助。as.data.frame(stack(“D:/LiDAR/Landsat/for_Joe/Med_2015.tif”)[[1]],xy=TRUE)有效吗?作为.data.frame(stack(“D:/LiDAR/Landsat/Fo

有人知道会发生什么吗?这是我的控制台打印输出。奇怪的是,前四行
as.data.frame
运行时没有问题,但最后一行给出了“光栅IO期间失败”错误


我希望这是足够的信息,我问的问题是正确的。我对stackoverflow还不熟悉,对R和编码也比较陌生。感谢您的帮助。

as.data.frame(stack(“D:/LiDAR/Landsat/for_Joe/Med_2015.tif”)[[1]],xy=TRUE)有效吗?作为.data.frame(stack(“D:/LiDAR/Landsat/For_Joe/Med_2015.tif”)[[4]],xy=TRUE)怎么样?
raster::rasterTmpFile()
提供的硬盘是否接近容量?谢谢回复。这两行仍然会产生“错误:光栅IO期间失败”。我的D驱动器(数据)是128GB SSD,使用率为50%,而我的C驱动器(OS/R/Rstudio)是256GB SSD,使用率约为50%。我还有32GB的RAM,即使使用这些大型数据集也不应受到限制。
as.data.frame(stack(“D:/LiDAR/Landsat/For_Joe/Med_2015.tif”)[[1]],xy=TRUE)
有效吗?作为.data.frame(stack(“D:/LiDAR/Landsat/For_Joe/Med_2015.tif”)[[4]],xy=TRUE)怎么样?
raster::rasterTmpFile()
提供的硬盘是否接近容量?谢谢回复。这两行仍然会产生“错误:光栅IO期间失败”。我的D驱动器(数据)是128GB SSD,使用率为50%,而我的C驱动器(OS/R/Rstudio)是256GB SSD,使用率约为50%。我还有32GB的RAM,即使使用这些大型数据集也不应该受到限制。
library("raster", lib.loc="~/R/win-library/3.3")
library("rgdal", lib.loc="~/R/win-library/3.3")
#> rgdal: version: 1.1-10, (SVN revision 622)
#> Geospatial Data Abstraction Library extensions to R successfully loaded
#> Loaded GDAL runtime: GDAL 2.0.1, released 2015/09/15
#> Path to GDAL shared files: C:/Users/JV-Desktop/Documents/R/win-library/3.3/rgdal/gdal
#> Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492]
#> Path to PROJ.4 shared files: C:/Users/JV-Desktop/Documents/R/win-library/3.3/rgdal/proj

liMax <- as.data.frame(raster("D:/LiDAR/LiDAR/30_m/m_30_max.tif"), xy=TRUE)
CanopyBase <- as.data.frame(raster("D:/LiDAR/LiDAR/30_m/m_30_avg.tif") - raster("D:/LiDAR/LiDAR/30_m/m_30_std.tif"), xy=TRUE)

rawData.li <- merge(liMax,CanopyBase)
processed.li <- rawData.li[complete.cases(rawData.li),]

satMax <- as.data.frame(stack("D:/LiDAR/Landsat/For_Joe/Max_2015.tif"), xy=TRUE)
satMed <- as.data.frame(stack("D:/LiDAR/Landsat/For_Joe/Med_2015.tif"), xy=TRUE)
#> Error: Failure during raster IO
stack("D:/LiDAR/Landsat/For_Joe/Max_2015.tif")
# class       : RasterStack 
# dimensions  : 5640, 8763, 49423320, 7  (nrow, ncol, ncell, nlayers)
# resolution  : 30, 30  (x, y)
# extent      : -1491300, -1228410, 2709840, 2879040  (xmin, xmax, ymin, ymax)
# coord. ref. : +proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 
# names       : Max_2015.1, Max_2015.2, Max_2015.3, Max_2015.4, Max_2015.5, Max_2015.6, Max_2015.7 

stack("D:/LiDAR/Landsat/For_Joe/Med_2015.tif")
# class       : RasterStack 
# dimensions  : 5640, 8763, 49423320, 7  (nrow, ncol, ncell, nlayers)
# resolution  : 30, 30  (x, y)
# extent      : -1491300, -1228410, 2709840, 2879040  (xmin, xmax, ymin, ymax)
# coord. ref. : +proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 
# names       : Med_2015.1, Med_2015.2, Med_2015.3, Med_2015.4, Med_2015.5, Med_2015.6, Med_2015.7 
# min values  : -0.3208517, -0.5767694, -0.5474564,          ?,          ?,          ?,          ? 
# max values  :          1,          1,          1,          ?,          ?,          ?,          ?