Monday, 13 April 2015

Extending size (area) of raster using ArcGIS Desktop


My problem is that I would like to multiply two rasters using raster calculation tool. Both rasters have values 0 and 1, but the covered area of first raster is bigger (100 x 100 miles) then the area of second (80 x 80 miles).


How can I extend the second raster to the same size?


I would just like to add columns and rows with 0. At first I thought that this would be simple, but after searching on internet I didn't found any solution.



Answer



Right-click on your layer > Properties > Extent tab


From here you can set your raster extent to that of another layer. You can then use the Conditional tool to assign whatever value you like to the extra pixels, which default to NoData. Further instruction here.


Depending on your application you may need to also implement the IsNull tool.


enter image description here


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...