[R] raster package: merge/mosaic

Carl Witthoft carl at witthoft.com
Wed Oct 23 21:18:40 CEST 2013


According to ?merge,  you could try adjusting the default value of the
"tolerance" argument.



Nora Ernst wrote
> I'm working with raster data (satellite imagery) and the raster package.
> The
>    idea is to merge two raster files that are partially overlaping, do
> have the
>    same coordinate system and resolution but not the same origin. As
> expected,
>    the functions mosaic(r1,r2) as well as merge(r1,r2)) give the error
> message:
> 
> Error in compareRaster(x, extent = FALSE, rowcol = FALSE, orig = TRUE,  : 
>   different origin
> 
> 
>> origin(r1)
> [1] 5.582522e-05 1.124150e-03
>> origin(r2)
> [1]  0.001054868 -0.001124150
> 
> 
>    Can  anyone tell me how it is possible to merge rasters with different
>    origin?





--
View this message in context: http://r.789695.n4.nabble.com/raster-package-merge-mosaic-tp4678890p4678899.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list