Apply a function to each cell of a raster, using blockwise I/O

raster_blockwise_apply(filename, filename_out, fun, nodata, band = 1,
  datatype = "Float32")

Arguments

filename

Filename of raster to read

filename_out

Filename of output GeoTIFF

fun

Function to apply to each cell of input

nodata

NODATA value to use for filename_out

band

The band of filename to read

datatype

Data type of output raster (allowable type names are defined by the rgdal package.)