R: Error thrown while using RGDAL and RASTER packages

谁说胖子不能爱 提交于 2019-12-05 22:08:33

Super simple fix. Cannot believe that it is this simple and that it took me this long, but here is the answer:

"rgdal" and/or "GTiff" files don't like the use of underscores in their dataset names.

When running the code with "GRAD1.tif" (instead of "GRA_D1.tif"), all works well.

You really should not be doing any of this, I think, as you could do:

 p <- predict(r1, mod.1, filename='GRA_D1.tif')

(and that filename works just fine)

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