Skip to contents

Change all numbers in a raster which are less than some upper value to zero.

Usage

reclassifyBelowUpperBound(raster, upper, reclassification = 0)

Arguments

raster

a SpatRaster to reclassify

upper

the upper bound, not included in the range of values classified

reclassification

the value to use when reclassifying those below the upper value (zero by default).

Value

the reclassified SpatRaster

Details

With an upper of zero, negatives will be reclassified to zero, whilst with an upper bound of some positive number, any number less than that will be reclassified to zero.

Author

Bryce Carson