Wednesday 28 September 2016

arcgis desktop - Clip or extract a raster by row/column number in QGIS or ArcMap?


I have a georeferenced raster. Instead of extracting or clipping it by a clip feature or co-ordinate, I need to clip it by row and column number.


i.e. I want BX.tif to be columns 2150:2400 and rows 1250:1650 of B2.tif.



Answer



I addressed this using Michael Miles-Stimson's comment - in gdal


gdal_translate -srcwin 1250 2150 401 251 input.tif output.tif


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...