Iterates over two rasters using a second order function. It supposes both rasters have the same extent and resolution.
1 | forEachBlockPair(raster1, raster2, func)
|
raster1 |
A raster::raster. |
raster2 |
Another raster::raster. |
func |
A function that takes two arguments: (1) A vector of pixels representing a block from raster1 and (2) A vector of pixels representing a block from raster2. Both vectors have the same size. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.