<?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 in arcpy not working in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1236281#M11808</link>
    <description>&lt;P&gt;Repair ArcMap using one of the following steps: Rerun the installation tool, and click the Repair radio button. Navigate to the Control Panel &amp;gt; Programs &amp;gt; Programs and Features &amp;gt; Uninstall a program, and double-click ArcGIS for Desktop. Click the Repair radio button.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 07:32:46 GMT</pubDate>
    <dc:creator>RachelGomez</dc:creator>
    <dc:date>2022-11-30T07:32:46Z</dc:date>
    <item>
      <title>IDW in arcpy not working</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1154793#M11616</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First post after many years of lurking. I am currently building a workflow in python. I am trying to use IDW to create a wind direction map.&amp;nbsp; The input is a fc containing the location of weatherstations and the recorded wind directions. When I run the IDW tool from arcgis itself it works fine. However, when I try to recreate the map using arcpy I keep getting a raster with a single value. All parameters are the same in both the arcgis desktop and the arcpy script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a known issue with IDW when using arcpy?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See extract from script below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;input_tbl = r'...windspeed.csv'&lt;BR /&gt;workspace = r'...\scratch.gdb'&lt;/P&gt;&lt;P&gt;#environment settings&lt;BR /&gt;arcpy.env.workspace = workspace&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;spatial_ref = arcpy.SpatialReference(4326)&lt;/P&gt;&lt;P&gt;out_weatherstations = arcpy.management.XYTableToPoint(input_tbl,'weather_stations','long','lat','',spatial_ref)&lt;/P&gt;&lt;P&gt;print('point created')&lt;/P&gt;&lt;P&gt;out_IDWdirection = arcpy.sa.Idw(out_weatherstations,&lt;BR /&gt;"direction_degrees",&lt;BR /&gt;2000,&lt;BR /&gt;2,&lt;BR /&gt;'VARIABLE 12',&lt;BR /&gt;None);&lt;/P&gt;&lt;P&gt;out_IDWdirection.save(r'/...IDW_direction')&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 14:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1154793#M11616</guid>
      <dc:creator>Fsbei</dc:creator>
      <dc:date>2022-03-17T14:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: IDW in arcpy not working</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1154798#M11617</link>
      <description>&lt;P&gt;- how many columns and rows does the output raster have?&lt;/P&gt;&lt;P&gt;- do the input points display within the extent of the raster?&lt;/P&gt;&lt;P data-unlink="true"&gt;- include a print of the number of records in out_weatherstations, use &lt;A href="https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/get-count.htm" target="_self"&gt;GetCount&lt;/A&gt;,&amp;nbsp;in your script to see how many points are going into IDW&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 14:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1154798#M11617</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2022-03-17T14:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: IDW in arcpy not working</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1154818#M11618</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1398"&gt;@SteveLynch&lt;/a&gt;&amp;nbsp;. Your comment on the extent made me look more closely to the environment settings within the script. Simply stating the extent didn't work but stating that the env outputs spatial reference must be set to UTM did the trick! Within the arcgis project I had already set my environmental settings but ofcourse this was not set within the script. I think the cause of the empty output is that the IDW was calculated within the WGS84 ref. This of course can cause some conflicts with the given values I provided.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 15:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1154818#M11618</guid>
      <dc:creator>Fsbei</dc:creator>
      <dc:date>2022-03-17T15:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: IDW in arcpy not working</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1236281#M11808</link>
      <description>&lt;P&gt;Repair ArcMap using one of the following steps: Rerun the installation tool, and click the Repair radio button. Navigate to the Control Panel &amp;gt; Programs &amp;gt; Programs and Features &amp;gt; Uninstall a program, and double-click ArcGIS for Desktop. Click the Repair radio button.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 07:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/idw-in-arcpy-not-working/m-p/1236281#M11808</guid>
      <dc:creator>RachelGomez</dc:creator>
      <dc:date>2022-11-30T07:32:46Z</dc:date>
    </item>
  </channel>
</rss>

