<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: brainteaser viewshed wind turbines - the more you see the worse it gets... in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319501#M11255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe something from the Spatial Statistics Tools? Seems like something in there might be able to take care of the distance issue (maybe Geographically Weighted Regression?).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2013 17:31:42 GMT</pubDate>
    <dc:creator>MattSayler</dc:creator>
    <dc:date>2013-08-07T17:31:42Z</dc:date>
    <item>
      <title>brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319492#M11246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: firefry82&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;working with arcgis 10.1 Sp1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a little brainteaser for you: I am trying to make a visibility analysis of wind turbines.&amp;nbsp; But instead of the simple viewshed thing,&amp;nbsp; I am trying to include stuff like partial visibility and multiple visibilities. The latter one is driving me insane and I hope some of you guys (or girls of course) maybe have an idea how to approach this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have zones around each single turbine, which indicate the level of visual distress in relation to the distance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26444[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can now merge them to a big viewshed which works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To include the multiple visibilities I need to consider the folowing idea from "Paul et al. 2004"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26442[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style: italic; font-size: 3;"&gt;Paul et al 2004 &amp;amp; ECOGIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though this is for tension towers I think it is about the same for wind turbines. It says that the visibility&amp;nbsp; increases when more when multiple turbines are visible. So he set up a factor which is 1 for the closest turbine, 1/2 for the second closest,&amp;nbsp; 1/3 for the third closest and so on (1/i). Now how do I find out which turbine is closest to each cell from my raster? and then how do I get a hold of the zone-id?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the idea sketch:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26447[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I tried so far: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) converted viewsheds to polygones, made union analysis to try to intersect each one with the other to find overlapping areas. Then could go through each row and find the biggest zone-id which would be taken in account by the factor 1, the second biggest zone-id with 1/2 and so on. --&amp;gt; failed because union analysis can'T handle the data load&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) tried intersect the the polygon-viewsheds without&amp;nbsp; the union,&amp;nbsp; but then only a small part in which they ALL intersect is produced. I the searched for a intersect method that maybe finds and visualizes all the intersections from the overlaps...but I didn't find anything&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) tried to work it out with the raster calculator, but then I wouldn't know how to tell him that he should only take the zone-value when it is the closest to the cell...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just can't get my head around it...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am open for any ideas, phyton-scripts, ...whatever...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 22:20:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319492#M11246</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-02T22:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319493#M11247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: firefry82&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;okay here is a little update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to do the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) calculate all the intersects from each viewshed to viewshed 1, then 2 and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this gives me a load of intersecting polygons for every viewshed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) with the help of the near-function I can now determine for each of these (intersection-)polygons how far away it is, which when brought to order gives me (theoretically) the nearest, second nearest , third nearest and so on object in relation to my first viewshed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) then (after conversion to raster) I can add them up by dividung the vakue of the (intersection-)raster by the number of its appearence&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works (theoretically) fine, but I have 155 viewsheds in my first set of data and if I do this calculation with every viewshed it will take a very, very long time. For an one second calculation about 7 hours. And the calculation will exceed one second by far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How else can I approach this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first I just added the rasters which gave me the seemingly right outcome, but on a closer look it was skewed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lets say the outer zone has the value of 1 while the inner (closest to the turbine) zone has the value of 6. Then if I just add up the zoned rasters six overlapping zone one's have the same value as the original zone 6. therefore I wanted to include the division&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 08:40:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319493#M11247</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-04T08:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319494#M11248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;okay, the last approach seemed to be a dead end, BUT what if I would calculate the order of distance for each cell?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cell 1= turbine112, turbine 7, turbine 39 ...and so on...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then I could sum up the values like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cell1= ([value from turbine112] *1) + ([value from turbine7] /2) + ([value from turbine39] /3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but how do I do this? the euclidean distance only shows how far it is to the closest turbine and doesn't give me any idea which turbine it is...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;damn it this shouldn't be to hard, why can't I figure this out??!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 10:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319494#M11248</guid>
      <dc:creator>nb</dc:creator>
      <dc:date>2013-08-06T10:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319495#M11249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: curtvprice&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;but how do I do this? the euclidean distance only shows how far it is to the closest turbine and doesn't give me any idea which turbine it is... &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The euclidean allocation grid is used to provide that information. It can be generated with its own tool or using as an optional argument to the Euclidean distance tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a deep breath, I think you're making progress. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 03:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319495#M11249</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-07T03:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319496#M11250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes I know, I already tried it with euclidean allocation but it still only gives me the ID to the &lt;/SPAN&gt;&lt;STRONG&gt;closest &lt;/STRONG&gt;&lt;SPAN&gt;turbine. But I need the ID to the closest, the second closest, the thrid closest and so on. I don't see a way, how I could manipulate the tool to these specifications...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 09:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319496#M11250</guid>
      <dc:creator>nb</dc:creator>
      <dc:date>2013-08-07T09:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319497#M11251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: csny490&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;But I need the ID to the closest, the second closest, the thrid closest and so on.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How about making a euclidean allocation grid for the 1st closest, then another one for the 2nd, 3rd, etc.. Then use the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//009z0000007r000000"&gt;combine tool &lt;/A&gt;&lt;SPAN&gt;to basically union all the euclidean allocation grids?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it would just be easier to make a bunch of seperate viewshed rasters and then combine them together.... then cursor through the table and work out some sort of scoring system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 15:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319497#M11251</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-07T15:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319498#M11252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;first of all thank you two so such for your efforts! I'm really strugelling with this and desperatly need new ideas / input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@ csny490&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How about making a euclidean allocation grid for the 1st closest, then another one for the 2nd, 3rd, etc.. Then use the combine tool to basically union all the euclidean allocation grids?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AFAIK there is no way to calculate the euclidean allocation for anything else than the closest:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26544[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is what my euclidean allocation grid looks like (zoomed of course). It is showing precisely the which cell belongs to which turbine but it is using the SHORTEST way to do that. So all I can derive from that is that if a person would stand in that cell he would see this turbine as the closest. But I need to determine which one comes after that, and after that and so on. Because it would bother more if there are two wind turbines. BUT: this relation is NOT linear. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a possible view could look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26546[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it wasn't for the distance I could just add up the zones, but it makes a huge difference if you see one real close (and therefore big appearing) turbine or 6 ones that are far away and therefore small appearing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Maybe it would just be easier to make a bunch of seperate viewshed rasters and then combine them together.... then cursor through the table and work out some sort of scoring system.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot do that because if I merge them, the overlays (the parts where you see more than one turbine) are lost, and if I use the union tool it crashes. And even if it wouldn't (f.e. when I do this with polygons in small steps) the union analysis takes about 3 minutes per 10 viewsheds. so even if the calculation was over after the union (which it isn't) it would take 3 mins * 15,5 *155 = 120,125 hours&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have questions please ask. I'm glad that you are helping.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 16:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319498#M11252</guid>
      <dc:creator>nb</dc:creator>
      <dc:date>2013-08-07T16:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319499#M11253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: csny490&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How about this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. For each tower make a viewshed raster and then score/reclassify it how you want (this is represented by the 1st image in your original post). So if tower id = 23, you should have a raster that is named something like "viewshed_23". For the analysis extent (the area that encompasses all the towers, reclassify your NoData pixels to 0s. You can use something like Con(IsNull("viewshed_23"), 0, "viewshed_23") to accomplish this. You have to make use of the envr "analysis extent" and "snap rastrer" settings to make sure that the calculation is done right. So in the end, you should have a bunch of rasters that all have the same rectangular extent, do not have any NoData pixles, and have only values 0,1,2,3, etc. - the 1,2,3,... representing your viewshed proiximity zones, and the 0s representing areas that are otside of the viewshed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Now that all your raster have the same rectangular extent, and all the NoData pixels are now 0s, you can use the Combine tool, and end up with a table like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;VIEWSHED_1&amp;nbsp; VIEWSHED_2&amp;nbsp; VIEWSHED_3
0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0
0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you will need to add a field called "SCORE" and run an update cursor to read the VIEWSHED_* values and evaluate them. Maybe just the field calculator will suffice for this, but probably not if you have a whole bunch of towers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:11:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319499#M11253</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319500#M11254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;BTW: I like the look of wind towers - I think they are cool - I just don't like the sound downwind of them!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 17:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319500#M11254</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-08-07T17:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319501#M11255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe something from the Spatial Statistics Tools? Seems like something in there might be able to take care of the distance issue (maybe Geographically Weighted Regression?).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 17:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319501#M11255</guid>
      <dc:creator>MattSayler</dc:creator>
      <dc:date>2013-08-07T17:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319502#M11256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: firefry82&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@csny490&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wow! It's really scary to read this, because I have done this almost the EXACT same way! Exept I used an addition where you suggested the combine-tool. I've pretty much done it in python. here are some screenshots: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the single viewsheds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26549[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the zoned-viewsheds with zeroes and big extent (btw. I don't understand what would you use the snap extent for?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26550[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the python-code I used to sum (addition) the rasters together&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
rasters2 = arcpy.ListRasters("Raster*")
for raster in rasters:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "processing raster:"+raster
&amp;nbsp;&amp;nbsp;&amp;nbsp; #big extent
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.extent = "C:/studium/00_Master/clean/clipper.shp"
&amp;nbsp;&amp;nbsp;&amp;nbsp; #convert nodata to zero
&amp;nbsp;&amp;nbsp;&amp;nbsp; out1 = Con(IsNull(raster), 0, raster)

&amp;nbsp;&amp;nbsp;&amp;nbsp; #sum rasters together
&amp;nbsp;&amp;nbsp;&amp;nbsp; if i == 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out2 = out1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i += 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out2 = out2 + out1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i += 1
head, tail = ntpath.split(raster)
#save final output
out2.save("C:/studium/project/script6/output.tif")&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*the head and tail are for naming purposes when this script is looped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after this I used another con to only put the values from the just generated (big) raster, which belong to the viewshed of turbine1 and so on. I have to do this because, I used the near tool to dtermine the distances from all 155 turbines to turbine 1, then 2 and so on. I sorted them asending by distance and numbered them (for the division). The only problem is: this order of appearance (which turbine comes first and which second...) is only correct for turbine1! So I do have to calculate this for all 155 turbines (155*155). In addition I need to erase the parts from the second Raster which I already calculated for Raster1. With my resolution (cell size=5 meters) a single run takes 18 minutes (on a i7 3.5GHZ with 16GB RAM and SSD). But since you would use the same method I think it won't work faster. This is why I was looking for a different solution with that euclidean distance and all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@msayler : I don't know these tools, let me have a look at them and get back to you asap&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319502#M11256</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T15:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319503#M11257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.env.extent = "C:/studium/00_Master/clean/clipper.shp"
comboGrdList = []
rastersList = arcpy.ListRasters("Raster*")
for raster in rasterList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; out1 = Con(IsNull(raster), 0, raster)
&amp;nbsp;&amp;nbsp;&amp;nbsp; out1.save("twr_" + str(raster.split("_")[-1])) #assuming that raster is something like "tower_12"
&amp;nbsp;&amp;nbsp;&amp;nbsp; comboGrdList.append(out1)
comboGrd = arcpy.sa.Combine(comboGrdList)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't really understand the tower distance order weighting you are trying to implement, but the GenerateNearTable tool will give you a matrix for all 155 ^ 2 combinations and the distances between them. A dictionary that stores the distances (generated from the near table) plus an update cursor on the combine table that accesses the dictionary should be what you need I think.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319503#M11257</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-11T15:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319504#M11258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: msayler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering, do you really need to know the actual next towers out? I'm wondering if you could do something like:&lt;/SPAN&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;make a raster where each cell is a count of the towers visible&lt;/LI&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;create viewsheds for each tower, make 0=not visible and 1=visible (can't remember if this is what the output looks like by default)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;add up the rasters per csny490's instructions, which I believe keeps the cells lined up?&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;/OL&gt;&lt;LI&gt;create a heat map or the like (I think that's basically what you have)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;normalize the values for the heat map so that they range from 0 to 1&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;multiply the rasters together (again, some processing may need to be done to make sure cells are coincident)&lt;/LI&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 21:01:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319504#M11258</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-07T21:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319505#M11259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello again, well I tried everything for the last few days but still no good results...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the combogrid &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;comboGrd = arcpy.sa.Combine(comboGrdList)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; sounded good but it seems that combine tool doesn't work for more than 20 files, because the algorithm writes the extra info in the raster bands and 20 seems to be the maximum.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;create a heat map or the like (I think that's basically what you have)&lt;BR /&gt;normalize the values for the heat map so that they range from 0 to 1&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried that (not sure if I did it right), but with the multiplication small values (e.g. 0,5) keep shrinking instead of slowly growing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to resample my data to 25mx25 m then cut out the cells where the value is 0 (so no turbine visible) and then converted raster to points (see pciture1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26655[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;picture 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I could then run the "generate near table tool" on the point shapefile and the turbines shapefile (155 points or "turbines") . It took a few minutes, but actually gnereated the table. But I figure running any calculation on &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this huge table (1,9 million cells * 155 locations / turbines) will take like foreever&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so I am looking for a different solution on how I could accomplish this here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26656[/ATTACH] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;picture 2: red dots are locations, grid represents (49) cells, green lines are to show the distance. Of course this is just a small scratch. Real values should be 1,9 million cells and 155 locations...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;does anybody think this is even doable or do you think its time to give up on it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 21:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319505#M11259</guid>
      <dc:creator>nb</dc:creator>
      <dc:date>2013-08-12T21:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319506#M11260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: csny490&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"If something is hard you should just give up, since it probably wasn't worth doing it in the first place."&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOT! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question: What if two towers were visible: One at 200m distance, and the other at 201m distance (shouldn't that distance rank variable be a bit more scaler?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay - How about this (and BTW, this would go way faster if you can coarsen the cell size). Also, make sure the cells are all alligned by setting a snap raster. Also, be aware you might fill up your RAM depending on how many pixels are involved:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. For each tower make a viewshed/euclidean distance raster so that the output raster name has the tower id in it "tower_12", and the raster values are the distances away from the tower.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Convert that raster to a point featureclass. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Using a search cursor, load all the point FCs into a Python dictionary. The dictionary key will be a tuple of the X,Y coordinate pair.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So maybe some thing like this (warning UNTESTED!):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;pointDict = {} pointFcList = ["tower_1.shp","tower_2.shp","tower_3.shp"] for pointFc in pointfcList: &amp;nbsp;&amp;nbsp; searchRows = arcpy.da.SearchCursor(pointFc, ["SHAPE@XY","DISTANCE"]) &amp;nbsp;&amp;nbsp; towerId = pointFc.split("_")[-1] &amp;nbsp;&amp;nbsp; for searchRow in searchRows: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xyKey, distance = searchRow &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if xyKey not in pointDict: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointDict[xyKey] = [(distance, towerId)] &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointDict[xyKey].append((distance, towerId)) for keyKey in pointDict: &amp;nbsp;&amp;nbsp; pointDict[xyKey].sort()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now (I think) you have everything you need to compute the score:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How many towers are visible at a given x,y coordinate? len(pointDict[xyKey])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the closest tower's distance to a given x,y coordinate? pointDict[xyKey][0][0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the closest tower id to a given x,y coordinate? pointDict[xyKey][0][1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How about the 2nd closest tower distance? Or the 3rd? pointDict[xyKey][1][0], pointDict[xyKey][2][0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How about the 2nd closest tower id? Or the 3rd? pointDict[xyKey][1][1], pointDict[xyKey][2][1]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 23:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319506#M11260</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-12T23:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319507#M11261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey csny490, fist of all a big thank you! For the magnificent piece of code which you (if it was nothing) pulled out of your sleeve. When I try to code something its always more like a try and error thing. And then of course for the motivation. I was about to let it all go. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So here is what I did (like you advised is)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Set the 0-cells in my vewsheds to nodata, then resample (for testing purposes to 90x90m, 25x25m, 5x5m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. create euclidean distance in the same resolutions (90, 25 ,5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Use con to insert the eucl distances in my modified viewshed raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. converted these to point shapes (snap to raster, very important!! otherwise the lenght of the dict will always be 1 and the dict will have multiple times more points &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. ran your script with these minor modifications (typos):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;for pointFc in pointfcList:&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; must be point&lt;/SPAN&gt;&lt;STRONG&gt;F&lt;/STRONG&gt;&lt;SPAN&gt;cList&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;for keyKey in pointDict:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pointDict[xyKey].sort()&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; must be pointDict[&lt;/SPAN&gt;&lt;STRONG&gt;key&lt;/STRONG&gt;&lt;SPAN&gt;Key].sort()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;towerId = pointFc.split("_")[-1]&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; I added [:-4] to cut off the ".shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I have to say it works like a charm! resolution 90x90m takes only 1:30 minutes, 25x25 only 18 minutes. Sadly the 5x5 resolution takes up a sweet time and diskspace. But I guess that would have happend with any solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well I think I still owe you an answer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Question: What if two towers were visible: One at 200m distance, and the other at 201m distance (shouldn't that distance rank variable be a bit more scaler?)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I think. lets assume tower 1 (turbine or whatever) is in zone 6, and tower 2 in zone 5. Then the calculation would be 6 + 5/2= 8,5. And since if you have one huge wind turbine in front of you, one more, a little further away won't make too much difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought about making my zones more as you say "scale" by using the distance but I think its not worth it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 10:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319507#M11261</guid>
      <dc:creator>nb</dc:creator>
      <dc:date>2013-08-15T10:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: brainteaser viewshed wind turbines - the more you see the worse it gets...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319508#M11262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: csny490&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad it worked! I replied to your message too - but yeah, go right ahead!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 16:01:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/brainteaser-viewshed-wind-turbines-the-more-you/m-p/319508#M11262</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-15T16:01:03Z</dc:date>
    </item>
  </channel>
</rss>

