Timeline for Combine multiple partially overlapping rasters into a single raster in R
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 30, 2017 at 16:01 | vote | accept | falcs | ||
Jan 30, 2017 at 15:49 | comment | added | Tom Higginbottom | Try specifying the tollerence within mosaic, it might not be using the global option within the functions. 'raster.list$tolerance <- 0.1'. Otherwise i'm really not sure. | |
Jan 30, 2017 at 15:42 | comment | added | falcs | I think I have a partial solution, I inserted raster_file <- resample(raster_file,snap,"ngb"), into the loop to align the rasters, where snap is a predefined raster. However, I now only get the area where the rasters overlap, not the combined area | |
Jan 30, 2017 at 15:35 | comment | added | falcs | Added to the end of the question | |
Jan 30, 2017 at 15:33 | comment | added | Tom Higginbottom | That is bizare, could you print a sessionInfo() and rasterOptions() output and i'll have a look. | |
Jan 30, 2017 at 15:31 | comment | added | falcs | I also increase the tolerance to rasterOptions(tolerance = 0.5) | |
Jan 30, 2017 at 15:28 | comment | added | falcs | I've updated R from 3.3.1 to 3.3.2 and reinstalled raster package, but get the same error. | |
Jan 30, 2017 at 15:08 | comment | added | Tom Higginbottom | Hmmmm ok, this question on mosaicing is probably the same error. So i would try the following: 1) update R and raster to most recent versions, 2) increase the tollerence, gis.stackexchange.com/questions/167445/… | |
Jan 30, 2017 at 15:05 | comment | added | falcs | This looks like the kind of solution I need but I get an error "Error in compareRaster(x, extent = FALSE, rowcol = FALSE, orig = TRUE, : different origin" with my data. | |
Jan 30, 2017 at 14:55 | history | answered | Tom Higginbottom | CC BY-SA 3.0 |