[GIS] Specifying number of columns and rows in a raster file

arcgis-10.2arcgis-desktopraster

ArcGIS 10.2

I want to produce a raster file with a specific number of rows and columns – 300×300. This needs to be reproducible on multiple data sets/locations – so fixing the extent of the file won't work.

I have tried changing the grid size which then changes the number of rows and columns but it is too awkward to make it create a 300×300 raster.

Is there a simple way of specifying these?

Best Answer

If this is going to be a spatial dataset and you are posting this question on a GIS forum you need to set the extent and ideally the coordinate system. Also by definition a raster has to have a value for each cell. So assuming you have spatial analyst extension installed, licensed and turned on you can use the Create Constant Raster tool. A screen shot below shows how to create a raster with an origin at 0,0 and is 300 pixels wide and high with each pixel a 10x10m area. I did this for the British National Grid.

It's worth emphasising that there are few rasters that are useful which are anchored to 0,0 especially if you want to use it in spatial analysis with other datasets.

Create constant raster tool

Related Question