clean_raster function

Applies thresholds and mask to a raster object