I have a huge raster file and want to increment all the values within a relatively small shapefile by 1 in Python. Speed is of critical importance, as I have to do this many times.
I have been looking at: http://geospatialpython.com/2011/02/clip-raster-using-shapefile.html
However, changing the code to my purposes, it seems elaborate to clip the raster, then set all values to one and update the raster with it's own clip.