How can I fix “Error: Failure during raster IO”?

六月ゝ 毕业季﹏ 提交于 2021-01-29 04:57:17

问题


I'm trying to working with 12 high resolution LANDSAT images at 30m resolution (1.4 Gb per image) as covariates in a species distribution model. But I get the following error: “Error: Failure during raster IO” when extracting values from my raster stack.

library(raster)
preds <- suppressWarnings( raster::stack(files))
envtrain <- extract(preds, train)

I read some suggestion to reduce the images area, but it's not good for me.


回答1:


This almost certainly means that your raster file is corrupted. Try downloading it again. And why do you use suppressWarnings. Remove that and look at the warnings... (and show them to us!)



来源:https://stackoverflow.com/questions/41783374/how-can-i-fix-error-failure-during-raster-io

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!