<?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: IDW Iteration - Model Builder in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460419#M6642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see this post is unanswered from 4 years ago, but here goes, with Python:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import os # import os library
... fc = 'points' # points layer
... r_fields = arcpy.ListFields("points", "r*") # get list of fields beginning with 'r' - it will depend on your data if this is appropriate
... cell_size = 100 # cell size for IDW
... out_folder = r'C:\junk' # folder for output rasters
... for r_field in r_fields: # loop through r_fields
...&amp;nbsp;&amp;nbsp;&amp;nbsp; outIDW = arcpy.sa.Idw(fc, r_field.name, cell_size) # run IDW considering r_field
...&amp;nbsp;&amp;nbsp;&amp;nbsp; outIDW.save(os.path.join(out_folder,r_field.name + '.tif')) # save output&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:29:55 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2021-12-11T20:29:55Z</dc:date>
    <item>
      <title>IDW Iteration - Model Builder</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460416#M6639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've seen a lot of posts about this, but there do not seem to be many helpful answers.&amp;nbsp; I have a point feature layer which describes 18 ozone monitoring sites (on rows).&amp;nbsp; Some of my fields are descriptors for those sites, while the bulk of the fields are random samples in time (rxxxx) which report ozone level by site as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;site&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r0001&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r0254&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&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; 0&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2&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; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.5&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; 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3&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; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.5&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; 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4&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; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&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;&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;&amp;nbsp; ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am trying to do is use model builder to run the IDW tool for all random steps, but can't quite figure out how to feed the z value field in IDW with the field names r0001 through r0254.&amp;nbsp; I'm not very literate with Python, and am fairly new to Model Builder.&amp;nbsp; I know that I can set up batch runs for tools, but would rather not if anyone is familiar with another way to do this?&amp;nbsp; Can I feed the names of the z value fields as a list into IDW?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I transposed the field names and tried to feed them into an iterator to spit the names out as variables, but could not figure out how to feed them into the z value field variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I've done searching for these methods, and here are some examples of similar questions, but the answers are still unclear to me or don't exist:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First: &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/3670/interpolation-for-timeseries-in-arcgis"&gt;http://gis.stackexchange.com/questions/3670/interpolation-for-timeseries-in-arcgis&lt;/A&gt;&lt;SPAN&gt; trying to do something exactly like this, but the exact steps user2445 suggests are not clear (the link between the iteration and the IDW tool specifically).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18870-Create-a-loop-for-IDW-SPatial-Analyst"&gt;http://forums.arcgis.com/threads/18870-Create-a-loop-for-IDW-SPatial-Analyst&lt;/A&gt;&lt;SPAN&gt; is from these forums, but unanswered.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 16:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460416#M6639</guid>
      <dc:creator>LiamHendricken</dc:creator>
      <dc:date>2011-11-28T16:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: IDW Iteration - Model Builder</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460417#M6640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to provide an update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While I did not find an iterative solution to this problem, I just selected a list for the z field values, and fed in the list this way.&amp;nbsp; Not what I wanted to do, but it did work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, if anyone has a better way to do this using iterators, it would be extremely helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 17:44:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460417#M6640</guid>
      <dc:creator>LiamHendricken</dc:creator>
      <dc:date>2011-11-29T17:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: IDW Iteration - Model Builder</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460418#M6641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz can you share your code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:03:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460418#M6641</guid>
      <dc:creator>aichaous</dc:creator>
      <dc:date>2016-03-29T16:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: IDW Iteration - Model Builder</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460419#M6642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see this post is unanswered from 4 years ago, but here goes, with Python:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import os # import os library
... fc = 'points' # points layer
... r_fields = arcpy.ListFields("points", "r*") # get list of fields beginning with 'r' - it will depend on your data if this is appropriate
... cell_size = 100 # cell size for IDW
... out_folder = r'C:\junk' # folder for output rasters
... for r_field in r_fields: # loop through r_fields
...&amp;nbsp;&amp;nbsp;&amp;nbsp; outIDW = arcpy.sa.Idw(fc, r_field.name, cell_size) # run IDW considering r_field
...&amp;nbsp;&amp;nbsp;&amp;nbsp; outIDW.save(os.path.join(out_folder,r_field.name + '.tif')) # save output&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-iteration-model-builder/m-p/460419#M6642</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T20:29:55Z</dc:date>
    </item>
  </channel>
</rss>

