Hi,
I would like to know if there is a way to extract all pixels of a raster touched by a mask, not just the pixels whose center falls within the mask, even if it requires some scripting.
I have been trying to clip a raster with a mask (tried raster and feature), however some pixels are excluded from the output since their center fall outside of the mask (see picture). I cannot change the pixel size of the input raster.
I know gdalwarp has an option to keep all pixels that touch the mask, is there a way to code something similar with arcpy?
I attached my code for reference.
Benjamin