Model Builder - Raster attribute to variable?

707
1
Jump to solution
01-15-2013 10:09 AM
JamesHook
New Contributor II
Simple question but I can't seem to find an answer anywhere - is there a way to export raster attributes (e.g., mean, cell size) to a a variable?  I'm converting a tool from a Python script to a model, and the tool buffers a polygon by a distance equal to the cell size of a DEM raster.  Is there a (simple) way to do this in MB?
0 Kudos
1 Solution

Accepted Solutions
StefanHaglund1
Esri Contributor
Hi triphook3,

You can use the "Get Raster Properties" tool, use either CELLSIZEX or CELLSIZEY as Property type (assuming you have square cells). You can connect the value from that tool as input to Buffer.

View solution in original post

0 Kudos
1 Reply
StefanHaglund1
Esri Contributor
Hi triphook3,

You can use the "Get Raster Properties" tool, use either CELLSIZEX or CELLSIZEY as Property type (assuming you have square cells). You can connect the value from that tool as input to Buffer.
0 Kudos