I have a big raster A (9000 x 2000 pixels) and I want to clip out a small portion of it B (500 x 500 pixels).
When I do this using EXTRACT BY MASK, the result raster C is still 9000 x 2000 pixels with only the small B portion containing data and the rest with 'no data' cells.
So I can 'hide' the border and it's fine if all I wanted was to make maps. However, I am looking to export the matrix into Matlab for further processing, and this issue not only makes the file unnecessarily bigger but also when exporting as a .tif it adds a white border to it.
I've seen this issue asked in many forums, since many years, but I can't find a definitive answer (or at least one that works at all for me).
Could you please help?