forEachBlockPair: Iterates over two rasters by blocks

Description Usage Arguments

View source: R/forEachBlock.R

Description

Iterates over two rasters using a second order function. It supposes both rasters have the same extent and resolution.

Usage

1
forEachBlockPair(raster1, raster2, func)

Arguments

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.


pedro-andrade-inpe/sits.validate documentation built on Dec. 4, 2019, 3:02 p.m.