I want to subset a raster based on irregularly shaped roi's. I have used SUB_RECT so far, but doing this only allows me to set a four element array of pixels (by defining the four corners of the subset). The problem with this is that I can only subset my rasters as squares or rectangles, when my shapes are irregular. Is there a function to select all pixels within the roi as my subset instead of just four corners?
|