rgb_raster2singleband turns a threeband RGB Raster (brick) into a singleband GREYSCALE raster with a colortable

colortable_greyscale(colortable, method = "ysrgb")

Arguments

method

The method to use when turning RGB to greyscale.

raster_in

An object of class RasterBrick.