Skip to main content

Timeline for Add layer to RasterBrick R

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
Nov 3, 2020 at 22:25 history edited PolyGeo
edited tags
Apr 14, 2019 at 6:46 history edited PolyGeo CC BY-SA 4.0
deleted 6 characters in body
Apr 12, 2019 at 19:57 answer added Spacedman timeline score: 3
Apr 12, 2019 at 19:41 comment added Spacedman Nah, its a badly named function! addLayers might be better, or it might not even be needed - you can do stack(a,b,c) and get the same effect I think...
Apr 12, 2019 at 18:48 comment added birdoptera And now I'm embarrassed about how dumb I am. That was exactly the problem. Thanks.
Apr 12, 2019 at 18:42 comment added Spacedman You're not adding anything to y. Are you trying to do x = addLayer(x, y)? See how important it is to show your code?
Apr 12, 2019 at 18:26 comment added birdoptera My code is just "x <- addLayer(y)". My data is the worldclim data and the elevation data (for the US) from getData (among others). I changed the extent, res and crs of worldclim to match the elevation data. I read the brick into memory and that's not the problem
Apr 12, 2019 at 14:45 comment added Spacedman Hard to tell without your data or your code. If you use readAll on the stack to bring it into memory (use inMemory to check) does it work?
Apr 12, 2019 at 14:24 history asked birdoptera CC BY-SA 4.0