Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have two raster A and B. A and B have the same grid size but different extent. How can I make A has the same number of columns and rows, as well as the spatial extent of B?

share|improve this question

2 Answers

up vote 3 down vote accepted

Depending upon which platform you are using, with Arc you need to ensure, before clipping, that you set your Environment Settings: Geoprocessing>Environments... Set both Processing Extent and Raster Analysis to the extent of the layer to which you wish to clip, and set also your Cell Size to the cell size of the clip raster(not the input raster).

In QGIS use GRASS plugin thru Sextante would be the quickest way, alternatively do directly through GRASS.

Source: Advanced GIS graduate course taken last year, heaps of raster experience.

share|improve this answer

Clip raster A by B using the Clip (Data Management) tool under Data Management - Raster - Raster processing.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.