Displaying 1 result from an estimated 1 matches for "putrasterdata".
Did you mean:
getrasterdata
2008 Aug 10
0
possible problem with rgdal
...4
oblique.x 0
oblique.y 0
driver GTiff
projection +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
file dummy.tif
> nrow(a)
[1] 420
> ncol(a)
[1] 660
> dummy = getRasterData(a)
> nrow(dummy)
[1] 660
> ncol(dummy)
[1] 420
> test = matrix(0, nrow=420, ncol=660)
> putRasterData(a,test)
Error in putRasterData(a, test) :
GDAL Error 5: Access window out of range in RasterIO(). Requested
(0,0) of size 420x660 on raster of 660x420.
Also, it appears that the lower left coordinates given by calling GDALinfo
are actually the upper left coordinates.
from command line GDAL:...