# Straight-line cost distance

Discussion created by amilt on Oct 3, 2012
Latest reply on Oct 31, 2012 by curtvprice
I want to do something between Cost Distance and Euclidean Distance. I want to evaluate the cost of traversing a straight line along a gradient to the nearest source. One example where one might want this is to compute sound penetration through a forest.

Can anyone tell me of a way to do this only using existing ArcGIS tools?

I already know how I would do this on my own (steps below), but I would prefer to avoid extra work:

1. Create the Euclidean Distance and Euclidean Direction rasters with EucDistance()

2. For each cell in the output raster, traverse the straight line to the nearest source, based on the outputs from 1. As you traverse the line, sum the values of the cells in the cost raster to get the value in the output raster. Also count the number of cells along the path.

3. Multiply the result from 2 by the average cell width along its straight line path.

[INDENT][Average Cell Width] = [Distance value in Euclidean Distance Raster] / [Number of cells along straight line path][/INDENT]