【发布时间】:2014-06-25 11:04:17
【问题描述】:
我正在尝试下载 ascii 栅格并使用 R 解压缩:
require(raster)
temp <- tempfile()
download.file("http://goo.gl/yGC4GU",temp)
myRaster <- raster( unz(temp, "koppen_ascii.txt") )
但我收到以下错误消息:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘raster’ for signature ‘"unz"’
还有其他方法吗?
【问题讨论】:
-
把解压和阅读分开。 raster 需要一个文件名,而不是 unz 的输出
-
也许你甚至可以在gis.stackexchange.com中找到有用的提示