I am trying to extract certain values from a raster image in order to create a new raster which should then only contain the specified values. I have a single band raster showing forest loss from 2000 to 2017. Pixel values range from 0 to 17, and correspond to the year in which the loss occurred. I am using the raster calculator with an expression such as:
"ForestLoss@1" = 11
It sort of works, but the output raster switches all the original pixel values to 1, and saves all of the other cells from the original raster as 0.
My hope was to have a new raster with only the cells that were originally 11 being retained.