# scales the dNBR map by 10^3 dNBR_scaled <- 1000*dNBR_cropped # sets the ranges that will be used to classify dNBR information about the ranges used, please see the NBR section on the recommended practice NBR_ranges <- c(-Inf, -500, -1, -500, -251, 1, -251, -101, 2, -101, 99, 3, 99, 269, 4, 269, 439, 5, 439, 659, 6, 659, 1300, 7, 1300, +Inf, -1) # sets a classification matrix class.matrix <- matrix(NBR_ranges, ncol = 3, byrow = TRUE) # classification matrix is used to classify dNBR_scaled dNBR_reclass <- reclassify(dNBR_scaled, class.matrix, right=NA)