Apply a function to each cell in a GDALRasterDataset, using blockwise I/O

block_apply(rast, rast_out, fun, band = 1)

Arguments

rast

A GDALRasterDataset from which values should be read

rast_out

A GDALRasterDataset to which values should be written

fun

A function to apply to each cell in rast

band

The band of rast to read