Skip to contents

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

Usage

reclassifyBelowUpperBound(raster, upper)

Arguments

raster

a SpatRaster to reclassify

upper

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

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